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 );} 9 1 0.25 2 0.5 9 1 0.25 2 0.5 ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be the output of the following piece of code?for(i = 0; i<10; i++);printf("%d", i); 10 0 0123456789 Syntax error Infinite loop 10 0 0123456789 Syntax error Infinite loop ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine Output:#define square(x) x*xvoid main(){ int i; i = 64/square(4); printf("%d", i);} 64 16 None of These 4 64 16 None of These 4 ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine Output:void main(){ char a[]="12345"; int i = strlen(a); printf("%d", ++i);} 6 7 None of These 5 6 7 None of These 5 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\0Veda None of these Exam Veda Exam Veda Exam\0Veda None of these Exam Veda Exam Veda ANSWER DOWNLOAD EXAMIANS APP
C Programming Comment on the following?const int *ptr; We can change the pointer as well as the value pointed by it. Both of the above We cannot change the pointer ptr itself. We cannot change the value pointed by ptr. We can change the pointer as well as the value pointed by it. Both of the above We cannot change the pointer ptr itself. We cannot change the value pointed by ptr. ANSWER DOWNLOAD EXAMIANS APP