Ads block

Banner 728x90px

19. write a C program to illustrate the use of nested structure


Program to illustrate the use of nested structure Source Code: #include<stdio.h> struct student { char name[30]; struct dob { int date,year,month; }; }; …
Read more »

18. write C program to store the information about three students


Program to store the information about three students. Source Code:  #include <stdio.h> struct student {     char Name[50];     int roll;     float marks…
Read more »

17. write a C program to perform specified operation on complex numbers


Program to perform specified operation on complex numbers Source Code: #include<stdio.h> typedef struct complex { double a; double b; } complex; complex …
Read more »

16. write a C program to display details of student


Program to display details of student like Roll Number, Name and subject Marks Source Code: #include <stdio.h> #include <string.h> struct student {…
Read more »

15. write a C program to count the lines,words and characters in a given text


Program to count the lines,words and characters in a given text. Source Code: #include<stdio.h> int main() { char str[200]; int line, word, ch;  line = w…
Read more »

14. write a C program that displays the position of a character in the string if character match


Program that displays the position of a character in the string if character match Source Code: #include<stdio.h> void main() { char x[30]; char c; int i…
Read more »

13. write a C program to insert & delete sub string into/from main string from a given position.


Program to insert & delete sub string into/from main string from a given position. 13a).  Insert a sub string into main string from a given position. Sourc…
Read more »

12. write a C program to determine if the given string is palindrome or not


Program to determine if the given string is palindrome or not 12a) Without buit-in-Functions Source  Code: #include<stdio.h> int main() {     char string…
Read more »

11. write a C program that uses functions to perform addition and multiplication of two matrices


Program that uses functions to perform following : a) Addition of two matrices Source Code: #include<stdio.h> int main() { int A[5][5],B[5][5],C[5][5],r…
Read more »

10. write a C program to find max., min. and avg. in an array of integers.


Program to find max., min. and avg. in an array of integers. Source Code: #include<stdio.h> int main() { int a[100],max,min,i,n,sum; float avg; printf(&q…
Read more »