Computer Science, asked by SHOTkilL, 11 days ago

What is the output of the C statement.? int main () { int a=0; a = 5>2 ? 4 : 3; printf("%d",a); return 0;
}
A) 4
B) 3
C) 5
D) 2​

Answers

Answered by arumallarushil
2

Answer:

5<2 is false. So 3 will be picked and assigned to the variable a.

Answered by steffiaspinno
1

printf (percent dn, I return 0 int main()  int fun() int I I = fun() printf (percent dn, I return 0 AX = 1990  int fun  int fun int fun int fun int fun int fun

includestdio.h> void fun(int*, int*); int main() int i=5, j=2; fun(&i, &j); printf (percent d, percent d, I j);includestdio.h> void fun(int, int) int main() int i=5, j=2; fun(&i, &j); printf (percent d, printf

fun(int I int *j) is a void function.

Switch Case Statement (C)

Let's look at the syntax of a switch case statement before we look at how it works in a C program.

Similar questions