3,539 views
0 votes
0 votes
The output of statement printf ("%d", 10 ? 0 ? 5 : 11 : 12 ) ;

1 Answer

Best answer
6 votes
6 votes

Ans is 11

Explanation :

If(10)

  if(0)                  // case failed

   printf(5)

printf(11)

inner if is false hence directly outer 11 is printed.

selected by

Related questions

0 votes
0 votes
2 answers
1
eyeamgj asked Nov 27, 2017
290 views
consider the following declarations1.int a[5]={1,2,3,4,5};2.int *p=(int*) malloc(sizeof(int)*5);which is truea.statement 1 take less tym than statement 2 for execution.b....
4 votes
4 votes
2 answers
3
sumit goyal 1 asked Aug 9, 2017
3,602 views
int sum(int A[], int n) { int sum = 0, i; for(i = 0; i < n; i++) sum = sum + A[i]; return sum; }
0 votes
0 votes
1 answer
4
Tankut asked Apr 4
74 views
A non empty set A is termed as an algebraic structure ________a)with respect to binary operation *b)with respect to ternary operation ?c)with respect to binary operation ...