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 );} 0.5 9 1 0.25 2 0.5 9 1 0.25 2 ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be output if you will compile and execute the following c code?#include#define max 5void main(){ int i = 0; i = max++; printf("%d", i++);} 0 Compiler Error 7 5 6 0 Compiler Error 7 5 6 ANSWER DOWNLOAD EXAMIANS APP
C Programming Find the output of the following program.#includevoid main(){ int y=10; if(y++>9 && y++!=11 && y++>11) printf("%d", y); else printf("%d", y);} 14 12 11 Compilation error 13 14 12 11 Compilation error 13 ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine Output:void main(){ int i; printf("%d", scanf("%d", &i)); // value 10 is given as input here} Garbage Value 1 None of These 10 Garbage Value 1 None of These 10 ANSWER DOWNLOAD EXAMIANS APP
C Programming Choose the best answer.Prior to using a pointer variable None of these. It should be both declared and initialized. It should be initialized. It should be declared. None of these. It should be both declared and initialized. It should be initialized. It should be declared. ANSWER DOWNLOAD EXAMIANS APP
C Programming Which one of the following is not a valid identifier? examians1 exam_veda 1examians _examians examians1 exam_veda 1examians _examians ANSWER DOWNLOAD EXAMIANS APP