0
What will be the output of the following code?
#include <stdio.h>
int main() {
int a = 10, b = 20;
int max = (a > b) ? a : b;
printf("%d", max);
return 0;
}- A30
- Bcompile time error
- C10
- D20
Correct answer: D
#include <stdio.h>
int main() {
int a = 10, b = 20;
int max = (a > b) ? a : b;
printf("%d", max);
return 0;
}