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 TRUE ANSWER : ? YOUR ANSWER : ?
Determine output:main(){ int i = 5; printf("%d%d%d%d%d", i++, i--, ++i, --i, i);} 45445 54544 45545 54554 TRUE ANSWER : ? YOUR ANSWER : ?
String concatenation means - Partitioning the string into two strings. Comparing the two strings to define the larger one. Combining two strings. Extracting a substring out of a string. Merging two strings. TRUE ANSWER : ? YOUR ANSWER : ?
Determine Output:void main(){ int i=0, j=0; if(i && j++) printf("%d..%d", i++, j); printf("%d..%d", i, j);} 1..0 0..1 0..0 1..1 TRUE ANSWER : ? YOUR ANSWER : ?
What is the output of the following statements?int b=15, c=5, d=8, e=8, a;a = b>c ? c>d ? 12 : d>e ? 13 : 14 : 15;printf("%d", a); 13 12 14 15 Garbage Value TRUE ANSWER : ? YOUR ANSWER : ?
In an expression involving || operator, evaluationI. Will be stopped if one of its components evaluates to falseII. Will be stopped if one of its components evaluates to trueIII. Takes place from right to leftIV. Takes place from left to right II and IV III and IV I and II I and III II and III TRUE ANSWER : ? YOUR ANSWER : ?
The default parameter passing mechanism is call by reference call by value result None of these. call by value TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of this program on an implementation where int occupies 2 bytes?#include <stdio.h>void main(){ int i = 3; int j; j = sizeof(++i + ++i); printf("i=%d j=%d", i, j);} i=5 j=2 i=4 j=2 the behavior is undefined i=3 j=2 TRUE ANSWER : ? YOUR ANSWER : ?
What will be output if you will compile and execute the following c code?#include<stdio.h>#define max 5void main(){ int i = 0; i = max++; printf("%d", i++);} Compiler Error 7 6 5 0 TRUE ANSWER : ? YOUR ANSWER : ?
If the two strings are identical, then strcmp() function returns None of these 1 0 -1 true TRUE ANSWER : ? YOUR ANSWER : ?