Sail E0 Webinar
Question
The output of the code below is
void main()
{
int k = 8;
int m = 7;
k < m ? k = k + 1 : m = m + 1;
printf("%d", k);
}
Options:
A .  Compile time error
B .  9
C .  8
D .  Run time error
Answer: Option A


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