Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Securing SQL Server Protecting Your Database From Attackers

Authors: Denny Cherry

2nd Edition

1597499471, 978-1597499477

More Books

Students also viewed these Databases questions

Question

3. Who would the members be?

Answered: 1 week ago

Question

What was the role of the team leader? How was he or she selected?

Answered: 1 week ago