C Programming :: Expressions
-
What will be the output of the program?
#include int main() { int x=55; printf("%d, %d, %d\n", x55, x=40, x>=10); return 0; } -
What will be the output of the program?
#include int main() { int i=2; printf("%d, %d\n", ++i, ++i); return 0; } -
What will be the output of the program?
#include int main() { int k, num=30; k = (num>5 ? (num 10 ? 100 : 200): 500); printf("%d\n", num); return 0; } -
What will be the output of the program?
#include int main() { char ch; ch = 'A'; printf("The letter is"); printf("%c", ch >= 'A' && ch 'Z' ? ch + 'a' - 'A':ch); printf("Now the letter is"); printf("%c\n", ch >= 'A' && ch 'Z' ? ch : ch + 'a' - 'A'); return 0; } -
What will be the output of the program?
#includeint main() { int i=2; int j = i + (1, 2, 3, 4, 5); printf("%d\n", j); return 0; }

Whatsapp
Facebook