C Programming Determine Output:void main(){ char a[]="12345"; int i = strlen(a); printf("%d", ++i);} 6 None of These 5 7 6 None of These 5 7 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 5 5 10 5 4 4 10 5 3 3 10 5 3 4 10 5 4 3 10 5 5 5 10 5 4 4 10 5 3 3 10 5 3 4 10 5 4 3 ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be the value of sum after the following program is executed?void main(){ int sum=1, index = 9; do{ index = index – 1; sum *= 2; }while( index > 9 );} 1 9 0.25 0.5 2 1 9 0.25 0.5 2 ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be the final value of the digit?void main(){ int digit = 0; for( ; digit <= 9; ) digit++; digit *= 2; --digit;} -1 19 16 17 20 -1 19 16 17 20 ANSWER DOWNLOAD EXAMIANS APP
C Programming int a[5] = {1,2,3}What is the value of a[4]? 1 3 Garbage Value 2 0 1 3 Garbage Value 2 0 ANSWER DOWNLOAD EXAMIANS APP
C Programming char *ptr;char myString[] = "abcdefg";ptr = myString;ptr += 5;what string does ptr point to in the sample code above? bcdefg cdefg efg defg fg bcdefg cdefg efg defg fg ANSWER DOWNLOAD EXAMIANS APP