Question
What is the output of this C code?
void main()
{
int k = 8;
int m = 7;
int z = k < m ? k++ : m++;
printf("%d", z);
}
void main()
{
int k = 8;
int m = 7;
int z = k < m ? k++ : m++;
printf("%d", z);
}
Answer: Option A
Was this answer helpful ?
None.
Was this answer helpful ?
Submit Solution