Search posts, tags, users, and pages
Kaustubh Kulkarni
Coder, Data Enthusiast, Teacher
#include <stdio.h> int main() { int a = 10; int b = a>=3?2*a:3*a; printf("b : %d",b); } First a is compared with 3 Then 2*a gets performed. Finally assignment operator makes the value of b as 20
No responses yet.