C Programming int a[5] = {1,2,3}What is the value of a[4]? 2 0 1 Garbage Value 3 2 0 1 Garbage Value 3 ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be the output of this program on an implementation where int occupies 2 bytes?#include void main(){ int i = 3; int j; j = sizeof(++i + ++i); printf("i=%d j=%d", i, j);} the behavior is undefined i=3 j=2 i=4 j=2 i=5 j=2 the behavior is undefined i=3 j=2 i=4 j=2 i=5 j=2 ANSWER DOWNLOAD EXAMIANS APP
C Programming Which of the following is a complete function? int funct(); void funct(x) { printf(“Hello"); } None of these int funct(int x) { return x=x+1; } void funct(int) { printf(“Hello"); } int funct(); void funct(x) { printf(“Hello"); } None of these int funct(int x) { return x=x+1; } void funct(int) { printf(“Hello"); } ANSWER DOWNLOAD EXAMIANS APP
C Programming char* myfunc(char *ptr){ ptr+=3; return(ptr);}void main(){ char *x, *y; x = "EXAMVEDA"; y = myfunc(x); printf("y=%s", y);}What will be printed when the sample code above is executed? y=AMVEDA y=VEDA y=EDA y=EXAMIANS y=MVEDA y=AMVEDA y=VEDA y=EDA y=EXAMIANS y=MVEDA ANSWER DOWNLOAD EXAMIANS APP
C Programming Consider the following program fragment, and choose the correct onevoid main(){ int a, b = 2, c; a = 2 * (b++); c = 2 * (++b);} b = 3, c = 6 a = 3, c = 8 a = 4, c = 6 a = 4, c = 8 b = 4, c = 6 b = 3, c = 6 a = 3, c = 8 a = 4, c = 6 a = 4, c = 8 b = 4, c = 6 ANSWER DOWNLOAD EXAMIANS APP
C Programming C preprocessor Acts before compilation All of these Takes care of conditional compilation Takes care of include files Takes care of macros Acts before compilation All of these Takes care of conditional compilation Takes care of include files Takes care of macros ANSWER DOWNLOAD EXAMIANS APP