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.5 0.25 9 2 1 0.5 0.25 9 2 ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be the correct output of the following program?#includevoid main(){ char str[] = "C EXAMINATION", rev[17]; int i = strlen(str), j=0; for( ; i>=0; rev[j++] = str[i--]) rev[j] = str[j] ; puts(rev);} No output at all. Syntax error C NOITANIMAXE NOITANIMAXE C No output at all. Syntax error C NOITANIMAXE NOITANIMAXE C ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be the output of the program ?#include#includevoid main(){ char str[] = "Exam\0Veda"; printf("%s", str);} Exam Exam Veda Veda Exam\0Veda None of these Exam Exam Veda Veda Exam\0Veda None of these ANSWER DOWNLOAD EXAMIANS APP
C Programming "My salary was increased by 15%" Select the statement, which will EXACTLY reproduce the line of text above. printf("My salary was increased by 15%!"); printf("My salary was increased by 15%%!"); printf("My salary was increased by 15/%!"); printf("My salary was increased by 15'%'!"); printf("My salary was increased by 15%!"); printf("My salary was increased by 15%%!"); printf("My salary was increased by 15/%!"); printf("My salary was increased by 15'%'!"); 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? No output 8 6 Syntax error Runtime error No output 8 6 Syntax error Runtime error ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine Output:main(){ char *str1 = "abcd"; char str2[] = "abcd"; printf("%d %d %d", sizeof(str1), sizeof(str2), sizeof("abcd"));} 8 5 5 2 4 5 2 4 4 2 5 5 8 5 5 2 4 5 2 4 4 2 5 5 ANSWER DOWNLOAD EXAMIANS APP