Elearning , Interview Questions And Answers

Google

} a. ABC\ b.\ c.ABC\4 d.ABC\\\ 9. #include <stdio.h> void main(void) { int a[10], i; int *b b=( int*) maloc(10* size of int)) *b =&a[3]; for(i=0;i<10;i++) a[i] =i+10 printf("%d",b[-1]); } SASKEN PAPER HELD ON 9th AUG at 2:30pm -------------------------------------------------------------- Freshers world.com The questions were like this. ------------------------------ The text consists of two parts 1) C test 2) CSE01 Test Duration: 1hr --------------------------------------------------------------- 1) C test -10 questions- Some questions were as follows, remember only a few. a) What is the parameter passing mechanism to Macros Called? b) void func(int x,int y) { x=3; y=2; } Freshersworld.com main() { int i; func(i,i); print(i); } If the output must be 2 what is the parameter passing mechanism called? c) which of the following code will swap the two numbers? -3 choices was given d) which of the following is illegal for the program? main() {