C Programming What is the right choice, if the following loop is implemented?void main(){ int num = 0; do{ --num; printf("%d", num); }while( ++num >= 0 );} Prints the value of 0 one time only. There will be a compilation error reported. The loop will run infinitely many times. A run time error will be generated. The program will not enter into the loop. Prints the value of 0 one time only. There will be a compilation error reported. The loop will run infinitely many times. A run time error will be generated. The program will not enter into the loop. ANSWER DOWNLOAD EXAMIANS APP
C Programming What does the following declaration mean?int (*ptr)[10]; ptr is an array of 10 integers ptr is array of pointers to 10 integers ptr is an pointer to array ptr is a pointer to an array of 10 integers ptr is an array of 10 integers ptr is array of pointers to 10 integers ptr is an pointer to array ptr is a pointer to an array of 10 integers ANSWER DOWNLOAD EXAMIANS APP
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? Runtime error Syntax error 6 8 No output Runtime error Syntax error 6 8 No output ANSWER DOWNLOAD EXAMIANS APP
C Programming In an expression involving || operator, evaluationI. Will be stopped if one of its components evaluates to falseII. Will be stopped if one of its components evaluates to trueIII. Takes place from right to leftIV. Takes place from left to right II and III I and III III and IV I and II II and IV II and III I and III III and IV I and II II and IV ANSWER DOWNLOAD EXAMIANS APP
C Programming What is the output of the following statements?int b=15, c=5, d=8, e=8, a;a = b>c ? c>d ? 12 : d>e ? 13 : 14 : 15;printf("%d", a); 13 Garbage Value 14 12 15 13 Garbage Value 14 12 15 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[3][4]){} void fun(int *p[4]){} void fun(int *p[][4]){} None of these void fun(int p[][4]){} void fun(int *p[3][4]){} void fun(int *p[4]){} void fun(int *p[][4]){} None of these void fun(int p[][4]){} ANSWER DOWNLOAD EXAMIANS APP