C Programming What would be the output for the following Turbo C code?#includevoid main(){ int a[]={ 1, 2, 3, 4, 5 }, *p; p=a; ++*p; printf("%d ", *p); p += 2; printf("%d", *p);} 2 3 3 3 3 4 2 2 2 4 2 3 3 3 3 4 2 2 2 4 ANSWER DOWNLOAD EXAMIANS APP
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 );} There will be a compilation error reported. The loop will run infinitely many times. A run time error will be generated. Prints the value of 0 one time only. The program will not enter into the loop. There will be a compilation error reported. The loop will run infinitely many times. A run time error will be generated. Prints the value of 0 one time only. The program will not enter into the loop. ANSWER DOWNLOAD EXAMIANS APP
C Programming What is the output of the following statements?int i = 0;printf("%d %d", i, i++); 1 0 0 0 1 1 0 1 None of these 1 0 0 0 1 1 0 1 None of these ANSWER DOWNLOAD EXAMIANS APP
C Programming Identify the correct output of the following code:void main(){ int w=10, x=5, y=3, z=3; if( (w < x ) && (y=z++) ) printf("%d %d %d %d", w, x, y, z); else printf("%d %d %d %d", w, x, y, z);} 10 5 3 3 10 5 3 4 10 5 5 5 10 5 4 3 10 5 4 4 10 5 3 3 10 5 3 4 10 5 5 5 10 5 4 3 10 5 4 4 ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine output:void main(){ int const *p=5; printf("%d", ++(*p));} Compiler Error Garbage Value 6 5 Compiler Error Garbage Value 6 5 ANSWER DOWNLOAD EXAMIANS APP
C Programming Find the output of the following program. void main() { int i=01289; printf("%d", i); } 0289 0713 713 1289 Syntax error 0289 0713 713 1289 Syntax error ANSWER DOWNLOAD EXAMIANS APP