What is the output of the following program ?
#include
main()
{
int a , b;
a = 10;
printf(“%d”,(a == 1) ? 20: 30 );
printf(“%d”,(a == 10) ? 20: 30 );
}1
2030
2
3020
3
3030
4
2020
What is the output of the following program ?
#include
main()
{
int a , b;
a = 10;
printf(“%d”,(a == 1) ? 20: 30 );
printf(“%d”,(a == 10) ? 20: 30 );
}