Sail E0 Webinar
Question
Comment on the output of this C code?
void main()
{
int k = 8;
int m = 7;
int z = k < m ? k = m : m++;
printf("%d", z);
}
Options:
A .  Run time error
B .  7
C .  8
D .  Depends on compiler
Answer: Option B


None.



Was this answer helpful ?
Next Question

Submit Solution

Your email address will not be published. Required fields are marked *

Latest Videos

Latest Test Papers