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 0.25 0.5 9 2 1 0.25 0.5 9 2 ANSWER DOWNLOAD EXAMIANS APP
C Programming short testarray[4][3] = { {1}, {2,3}, {4,5,6}};printf("%d", sizeof(testarray));Assuming a short is two bytes long, what will be printed by the above code? 7 24 6 12 It will not compile because not enough initializers are given 7 24 6 12 It will not compile because not enough initializers are given ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be the output?void main(){ int a=10, b=20; char x=1, y=0; if(a,b,x,y){ printf("EXAM"); } } exam is printed Nothing is printed XAM is printed Compiler Error exam is printed Nothing is printed XAM is printed Compiler Error ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine output of the following program code.#includevoid main(){ int a, b=7; a = b<4 ? b<<1 : ++b>4 ? 7>>1 : a; printf("%d %d", a, b);} 3 8 3 7 8 3 None of these 7 3 3 8 3 7 8 3 None of these 7 3 ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine Output:void main(){ char a[]="12345"; int i = strlen(a); printf("%d", ++i);} 6 None of These 7 5 6 None of These 7 5 ANSWER DOWNLOAD EXAMIANS APP
C Programming Use of functions Enhances the logical clarity of the program. Helps to avoid repeated programming across programs. Helps to avoid repeating a set of statements many times. All of these Makes the debugging task easier. Enhances the logical clarity of the program. Helps to avoid repeated programming across programs. Helps to avoid repeating a set of statements many times. All of these Makes the debugging task easier. ANSWER DOWNLOAD EXAMIANS APP