Elearning , Interview Questions And Answers

Google

{4,5,6} } int ** arr=a; print(arr); arr++; print(arr); } f) which of the following code swapps the two,numbers. - 4 choices were given g) if the string " this is a " is present in the code of a function such as 'void func(void)' where will the variable stored in the memory. a) in the stack b) heap c) code or text segment as per implementation d) created when func is called, stored in function stack space and destroyed as it goes out . 2) CSE01-15 questions In this section there was question from LD-gates, JK flip flop, sampling rate and few other then there was a few from OS - i dont remember the questions C Test ------ 1. What is the output of the Program? main() { int a[10]={1,2,3,4,5,6,7,8,9,10}; int *p=a; int *q=&a[9]; printf("%d",q-p+1); } Ans: 10 2. main() { int i=6; int *p=&i; free(p); printf("%d",i); } Options: a. No Error. b. Free can't be used for p,