#include <stdio.h> int main() { int x = 1; int y = x == 1 ? getchar(): 2; printf("%d\n", y); } code example
Example: #include int main() { int x=(20||40)&&(10); printf("%d",x); return 0; }
#include <stdio.h>
int main()
{
int x=(20||40)&&(10);
printf("%d",x);
return 0;
}