C Programming Consider the following code:void main(){ int a[5] = {6,8,3,9,0}, i=0; if(i != 0) { break; printf("%d", a[i]); } else printf("%d", a[i++]);}What is the output of the above program? Syntax error No output 6 Runtime error 8 Syntax error No output 6 Runtime error 8 ANSWER DOWNLOAD EXAMIANS APP
C Programming What is the correct value to return to the operating system upon the successful completion of a program? 1 Program do no return a value. 2 -1 1 Program do no return a value. 2 -1 ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be the value of i and j after execution of following program?#includevoid main(){int i, j;for(i=0,j=0;i<10,j<20;i++,j++){printf("i=%d %t j=%d", i, j); }} 20 20 10 10 10 20 Run time error 20 20 10 10 10 20 Run time error ANSWER DOWNLOAD EXAMIANS APP
C Programming Which of the following is correct way to define the function fun() in the below program?#includevoid main(){ int a[3][4]; fun(a);} void fun(int *p[4]){} void fun(int p[][4]){} void fun(int *p[][4]){} None of these void fun(int *p[3][4]){} void fun(int *p[4]){} void fun(int p[][4]){} void fun(int *p[][4]){} None of these void fun(int *p[3][4]){} ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be the output of the given program?#includevoid main(){float num=5.6;switch(num){case 5:printf("5");case 6:printf("6");default : printf("0");break;}printf("%d", num);} Complier error 6 5.600000 5 5.600000 0 5.600000 Complier error 6 5.600000 5 5.600000 0 5.600000 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=MVEDA y=EDA y=EXAMIANS y=VEDA y=AMVEDA y=MVEDA y=EDA y=EXAMIANS y=VEDA y=AMVEDA ANSWER DOWNLOAD EXAMIANS APP