Question: What is wrong with the following? if(a > 3) printf(a is big ); printf(but not big enough ); The printf statements should be on one

What is wrong with the following? if(a > 3)

printf("a is big ");

printf("but not big enough ");

The printf statements should be on one line.

The first printf should be on the same line as the if.

The indentation indicates 2 statements are within the true part of the if, but only 1 statement is in the true part.

You cannot have 2 printf statements in an if.

What is wrong with the following?

if( a > 3);

printf("a is big ");

The printf should be on the same line as the if.

There should not be a semicolon at the end of the if.

The printf should be in curly braces.

There should not be a semicolon at the end of the printf

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!