void ( * abc( int, void ( *def) () ) ) ();
Answer / susie
Answer : :
abc is a ptr to a function which takes 2 parameters .(a).
an integer variable.(b). a ptrto a funtion which
returns void. the return type of the function is void.
Explanation:
Apply the clock-wise rule to find the result.
| Is This Answer Correct ? | 5 Yes | 1 No |
main() { char *p = "hello world"; p[0] = 'H'; printf("%s", p); } a. Runtime error. b. “Hello world” c. Compile error d. “hello world”
#define square(x) x*x main() { int i; i = 64/square(4); printf("%d",i); }
4 Answers Google, HCL, Quick Heal, WTF,
source code for delete data in array for c
main() { int i = 3; for (;i++=0;) printf(“%d”,i); }
#define prod(a,b) a*b main() { int x=3,y=4; printf("%d",prod(x+2,y-1)); }
Given an array of characters which form a sentence of words, give an efficient algorithm to reverse the order of the words (not characters) in it.
main() { unsigned char i=0; for(;i>=0;i++) ; printf("%d\n",i); }
1) int i=5; j=i++ + i++ + i++; printf("%d",j);This code gives the answer 15.But if we replace the value of the j then anser is different?why? 2)int i=5; printf("%d",i++ + i++ + i++); this givs 18.
main() { int i=5,j=6,z; printf("%d",i+++j); }
#include<stdio.h> main() { int i=1,j=2; switch(i) { case 1: printf("GOOD"); break; case j: printf("BAD"); break; } }
How we print the table of 2 using for loop in c programing?
why is printf("%d %d %d",i++,--i,i--);