27. WAP to understand conditional operator.

#include<stdio.h>

void main()

{

        int i=1,j=2,k;

//      k=i<j?100:200;

//      i<j?k=100:k=200; // lvalue error

//      i<j?k=100:(k=200);

        printf("%d\n",k);

}

Comments