Elearning , Interview Questions And Answers

Google

void main() { float arr[2][3] = {{0,1,2},{3,4,5}}; float **fl_arr; fl_arr = (float *)arr; print_arr(fl_arr); fl_arr++; print_arr(fl_arr); } (a) (d)segmentation fault 3.What is the output of the following code:- #define putchar (c) printf("%c",c) void main() { char s='c'; putchar (s); } (a) c (b) 99 (c) Compilation error (d) Execution error 4.What is the output of the following code:- void main() { printf("%d",printf("ABC\\")); } (a) ABC\\ (b) 1 (c) ABC\4 (d) ABC\3 5.What is the output of the following code:- int compute(int n) { if(n>0) {