C Programming What will be the output of given program?#includevoid main(){int a=1;if("%d=hello", a);} 0 no error no output 1 complier error 0 no error no output 1 complier error 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=VEDA y=AMVEDA y=EDA y=EXAMIANS y=MVEDA y=VEDA y=AMVEDA y=EDA y=EXAMIANS y=MVEDA ANSWER DOWNLOAD EXAMIANS APP
C Programming Consider the following program fragment:for(c=1, sum=0; c <= 10; c++){ scanf("%d", &x); if( x < 0 ) continue; sum += x;}What would be the value of sum for the input 1, -1, 2, -2, 3, -3, 4, -4, 5, -5 10 -5 30 1 15 10 -5 30 1 15 ANSWER DOWNLOAD EXAMIANS APP
C Programming #includevoid main(){ int *ptr, a=10; ptr = &a; *ptr += 1; printf("%d, %d", *ptr, a);} 10, 10 11, 11 11, 10 10, 11 10, 10 11, 11 11, 10 10, 11 ANSWER DOWNLOAD EXAMIANS APP
C Programming short testarray[4][3] = { {1}, {2,3}, {4,5,6}};printf("%d", sizeof(testarray));Assuming a short is two bytes long, what will be printed by the above code? 24 12 7 6 It will not compile because not enough initializers are given 24 12 7 6 It will not compile because not enough initializers are given ANSWER DOWNLOAD EXAMIANS APP
C Programming Use of functions Makes the debugging task easier. All of these Helps to avoid repeated programming across programs. Enhances the logical clarity of the program. Helps to avoid repeating a set of statements many times. Makes the debugging task easier. All of these Helps to avoid repeated programming across programs. Enhances the logical clarity of the program. Helps to avoid repeating a set of statements many times. ANSWER DOWNLOAD EXAMIANS APP