Elearning , Interview Questions And Answers

Google

SASKEN ­ ALL PAPERS 2005 Sasken ­ questions : The questions were like this. Sasken New Pattern ------------------------------ Held on 9th August at 2:30 pm The text consists of two parts 1) C test 2) CSE01 Test Duration: 1hr --------------------------------------------------------- 1) C test -10 questions- Some questions were as follows I 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; } 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() { char const *p='p'; } 1)p++ 2) *p++ 3)(*p)++ 4) all e) what is the output of the following program void print(int ** arr) { print("0 %f, 1 %f, 2 %f ",arr[0][0],arr[0][1],arr[0][2]); } main() { int a[][]={ {1,2,3},