C Programming What will be the output of the following program code?main(){ static int var = 5; printf("%d ", var--); if(var) main();} 5 4 3 2 1 5 5 5 5 5 Infinite Loop None of these Compilation Error 5 4 3 2 1 5 5 5 5 5 Infinite Loop None of these Compilation Error ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be printed after execution of the following code?void main(){ int arr[10] = {1,2,3,4,5}; printf("%d", arr[5]);} 5 Garbage Value 6 None of these 0 5 Garbage Value 6 None of these 0 ANSWER DOWNLOAD EXAMIANS APP
C Programming What is the output of given program if user enter value 99?#includevoid main(){int i;printf("Enter a number:");scanf("%d", &i); // 99 is given as input.if(i%5 == 0){printf("nNumber entered is divisible by 5"); }} Enter a number:99 Enter a number:99 Number is divisible by 5 Run time error complier error Enter a number:99 Enter a number:99 Number is divisible by 5 Run time error 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=EXAMIANS y=AMVEDA y=MVEDA y=VEDA y=EDA y=EXAMIANS y=AMVEDA y=MVEDA y=VEDA y=EDA ANSWER DOWNLOAD EXAMIANS APP
C Programming Find the output of the following program.void main(){ printf("%d, %d", sizeof(int *), sizeof(int **));} 4, 4 2, 2 2, 4 0, 2 2, 0 4, 4 2, 2 2, 4 0, 2 2, 0 ANSWER DOWNLOAD EXAMIANS APP
C Programming What is the output of the following statements?for(i=10; i++; i<15) printf("%d ", i); None of these 10 11 12 13 14 9 10 11 12 13 10 11 12 13 14 15 Infinite loop None of these 10 11 12 13 14 9 10 11 12 13 10 11 12 13 14 15 Infinite loop ANSWER DOWNLOAD EXAMIANS APP