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.25 2 9 1 0.5 0.25 2 9 1 0.5 ANSWER DOWNLOAD EXAMIANS APP
C Programming The function sprintf() works like printf(), but operates on .......... Data file no such function in 'C'. string stderr stdin Data file no such function in 'C'. string stderr stdin ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine Output:#includevoid main(){ register i=5; char j[]= "hello"; printf("%s %d", j, i);} hello 5 hello garbage value Error None of These hello 5 hello garbage value Error None of These ANSWER DOWNLOAD EXAMIANS APP
C Programming What's wrong in the following statement, provided k is a variable of type int?for(k = 2, k <=12, k++) The variable must always be the letter i when using a for loop. There should be a semicolon at the end of the statement. The variable k can’t be initialized. The increment should always be ++k . The commas should be semicolons. The variable must always be the letter i when using a for loop. There should be a semicolon at the end of the statement. The variable k can’t be initialized. The increment should always be ++k . The commas should be semicolons. ANSWER DOWNLOAD EXAMIANS APP
C Programming In which stage the following code#includegets replaced by the contents of the file stdio.h None of these During linking During Editing During Execution During Preprocessing None of these During linking During Editing During Execution During Preprocessing ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine Output:void main(){ int i=0, j=0; if(i && j++) printf("%d..%d", i++, j); printf("%d..%d", i, j);} 0..0 1..1 0..1 1..0 0..0 1..1 0..1 1..0 ANSWER DOWNLOAD EXAMIANS APP