C Programming int a[5] = {1,2,3}What is the value of a[4]? 2 0 1 3 Garbage Value 2 0 1 3 Garbage Value ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be printed if the following code is executed?void main(){ int x=0; for( ; ; ) { if( x++ == 4 ) break; continue; } printf("x=%d", x);} x=5 x=4 x=0 Error x=1 x=5 x=4 x=0 Error x=1 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 );} The loop will run infinitely many times. There will be a compilation error reported. A run time error will be generated. The program will not enter into the loop. Prints the value of 0 one time only. The loop will run infinitely many times. There will be a compilation error reported. A run time error will be generated. The program will not enter into the loop. Prints the value of 0 one time only. ANSWER DOWNLOAD EXAMIANS APP
C Programming Which one of the following is not a valid identifier? examians1 exam_veda _examians 1examians examians1 exam_veda _examians 1examians ANSWER DOWNLOAD EXAMIANS APP
C Programming What is the return value of the following statement if it is placed in C program? strcmp("ABC", "ABC"); 0 1 -1 33 Compilation Error 0 1 -1 33 Compilation Error ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine Output:void main(){ int i=i++, j=j++, k=k++; printf("%d %d %d", i, j, k);} garbage values 0 0 0 1 1 1 Error garbage values 0 0 0 1 1 1 Error ANSWER DOWNLOAD EXAMIANS APP