What if the initial value assigned to a is 13 not 3 what


What will be printed by the following code?

int a = 3;

if (a <= 5)

if (a < 2)

printf("a is less than 2n");
else
printf("a is greater than 5n");
printf("done");

Why does this occur?

What if the initial value assigned to a is 13, not 3? What happens with this code and why does this occur? What does this tell you about setting up conditional expressions in the C language?

Solution Preview :

Prepared by a verified Expert
C/C++ Programming: What if the initial value assigned to a is 13 not 3 what
Reference No:- TGS01248608

Now Priced at $20 (50% Discount)

Recommended (96%)

Rated (4.8/5)