Declare an array of N pointers to functions returning
pointers to functions returning pointers to characters?
main() { int i=0; for(;i++;printf("%d",i)) ; printf("%d",i); }
main() { int x=5; clrscr(); for(;x<= 0;x--) { printf("x=%d ", x--); } } a. 5, 3, 1 b. 5, 2, 1, c. 5, 3, 1, -1, 3 d. –3, -1, 1, 3, 5
main() { int i=400,j=300; printf("%d..%d"); }
main() { struct student { char name[30]; struct date dob; }stud; struct date { int day,month,year; }; scanf("%s%d%d%d", stud.rollno, &student.dob.day, &student.dob.month, &student.dob.year); }
how to check whether a linked list is circular.
In a gymnastic competition, scoring is based on the average of all scores given by the judges excluding the maximum and minimum scores. Let the user input the number of judges, after that, input the scores from the judges. Output the average score. Note: In case, more than two judges give the same score and it happens that score is the maximum or minimum then just eliminate two scores. For example, if the number of judges is 5 and all of them give 10 points each. Then the maximum and minimum score is 10. So the computation would be 10+10+10, this time. The output should be 10 because 30/3 is 10.
main() { register int a=2; printf("Address of a = %d",&a); printf("Value of a = %d",a); }
Extend the sutherland-hodgman clipping algorithm to clip three-dimensional planes against a regular paralleiepiped
main() { while (strcmp(“some”,”some\0”)) printf(“Strings are not equal\n”); }
How to read a directory in a C program?
There are 21 people in a room. They have to form groups of 3 people each. How many combinations are possible? Write a C program to print the same.
PROG. TO PRODUCE 1 1 1 1 2 1 1 3 3 1 1 4 6 4 1