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 2 0.5 9 0.25 1 2 0.5 9 0.25 ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be the output of given program?#includevoid main(){int a=3;for(;a;printf("%d ", a--);} 3 2 1 0 no output 3 2 1 infinity loop 3 2 1 0 no output 3 2 1 infinity loop ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine Output:void main(){ char not; not = !2; printf("%d", not);} Garbage Value None of These 2 0 Garbage Value None of These 2 0 ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be printed if the following code is executed?void main(){ int x=0; for( ; ; ) { if( x++ == 4 ) break; continue; } printf("x=%d", x);} Error x=4 x=5 x=0 x=1 Error x=4 x=5 x=0 x=1 ANSWER DOWNLOAD EXAMIANS APP
C Programming What is function? Function is a block of statements that perform some specific task. All of these Function is the fundamental modular unit. A function is usually designed to perform a specific task. Function is a block of code that performs a specific task. It has a name and it is reusable. Function is a block of statements that perform some specific task. All of these Function is the fundamental modular unit. A function is usually designed to perform a specific task. Function is a block of code that performs a specific task. It has a name and it is reusable. ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine Output:void main(){ int i=10; i=!i>14; printf("i=%d", i);} 0 1 14 10 0 1 14 10 ANSWER DOWNLOAD EXAMIANS APP