What is the output of the following program segment?

1.4 What is the output of the following program segment?
#include<stdio.h>
main()
{
int i=10, m=10;
clrscr();
printf(“%d”, i>m?i*i:m/m,20);
getch();
}
A) 20
B) 1
C) 120
D) 100 20


Leave a Reply