MCQOPTIONS
Bookmark
Saved Bookmarks
→
C Programming
→
Floating Point Issues in C Programming
→
Is the following declaration correct?char (* ( *f(..
1.
Is the following declaration correct?char (* ( *f())[])();
A.
Yes
B.
No
Answer» B. No
Show Answer
Discussion
No Comment Found
Post Comment
Related MCQs
Is the following declaration correct?;
Are the following declarations same?
It is not necessary to typecast the address returned by .
Is the following declaration correct?
Does the data type of all elements in the will be same.
What will be the output of the program?_x000D_ #include<stdio.h>_x000D_ typedef void v;_x000D_ typedef int i;_x000D_ _x000D_ int main()_x000D_ {_x000D_ v fun(i, i);_x000D_ fun(2, 3);_x000D_ return 0;_x000D_ }_x000D_ v fun(i a, i b)_x000D_ {_x000D_ i s=2;_x000D_ float i;_x000D_ printf("%d,", sizeof(i));_x000D_ printf(" %d", a*b*s);_x000D_ }
What will be the output of the program?_x000D_ #include<stdio.h>_x000D_ _x000D_ int main()_x000D_ {_x000D_ struct s1_x000D_ {_x000D_ char *z;_x000D_ int i;_x000D_ struct s1 *p;_x000D_ };_x000D_ static struct s1 a[] = {{"Nagpur", 1, a+1} , {"Chennai", 2, a+2} , _x000D_ {"Bangalore", 3, a} };_x000D_ _x000D_ struct s1 *ptr = a;_x000D_ printf("%s,", ++(ptr->z));_x000D_ printf(" %s,", a[(++ptr)->i].z);_x000D_ printf(" %s", a[--(ptr->p->i)].z);_x000D_ return 0;_x000D_ }
Declare the following statement?_x000D_ "An array of three pointers to chars".
Declare the following statement?_x000D_ "A pointer to an array of three chars".
What will be the output of the program?_x000D_ #include<stdio.h>_x000D_ _x000D_ int main()_x000D_ {_x000D_ char huge *near *far *ptr1;_x000D_ char near *far *huge *ptr2;_x000D_ char far *huge *near *ptr3;_x000D_ printf("%d, %d, %d\n", sizeof(**ptr1), sizeof(ptr2), sizeof(*ptr3));_x000D_ return 0;_x000D_ }
Reply to Comment
×
Name
*
Email
*
Comment
*
Submit Reply