C Programming Find the output of the following program. void main() { int i=01289; printf("%d", i); } 0289 1289 713 0713 Syntax error 0289 1289 713 0713 Syntax error ANSWER DOWNLOAD EXAMIANS APP
C Programming Which of the following statements are true after execution of the program.void main(){ int a[10], i, *p; a[0] = 1; a[1] = 2; p = a; (*p)++;} a[0] = 3 a[1] = 3 Compilation error a[1] = 2 a[0] = 2 a[0] = 3 a[1] = 3 Compilation error a[1] = 2 a[0] = 2 ANSWER DOWNLOAD EXAMIANS APP
C Programming Find the output of the following program.void main(){ int array[10]; int *i = &array[2], *j = &array[5]; int diff = j-i; printf("%d", diff);} 3 Garbage value 6 Error 3 Garbage value 6 Error ANSWER DOWNLOAD EXAMIANS APP
C Programming Which is the only function all C programs must contain? main() getch() start() system() printf() main() getch() start() system() printf() ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine Output:void main(){ int c = - -2; printf("c=%d", c);} Error 1 2 -2 Error 1 2 -2 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=EDA y=VEDA y=AMVEDA y=MVEDA y=EXAMIANS y=EDA y=VEDA y=AMVEDA y=MVEDA y=EXAMIANS ANSWER DOWNLOAD EXAMIANS APP