Question
What will be the output of the following code int x = 5; int y = 2; f(x,y); printf(%s , (x/y > 2) ? x
What will be the output of the following code
int x = 5;
int y = 2;
f(x,y);
printf(%s , (x/y > 2) ? x is more than two times larger than y : x is less than or equal to 2*y );
f(int x, int y) {
x = 2*y;
printf(%s , (x/y > 2) ? x is more than two times larger than y : x is less than or equal to 2*y );
}
a. x is less than or equal to 2*y x is less than or equal to 2*y
b. x is less than or equal to 2*y x is more than two times larger than y
c. x is more than two times larger than y x is less than or equal to 2*y
d.x is more than two times larger than y x is more than two times larger than y
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started