C-programming

need help.

cosider the following code:

int a=1, b=2, c=3;
a +=b += c +=7;

write an equivalent statement that is fully parenthesized.
what are the values of variables a,b,c?
write a test program to check answers.

Comments

  • : need help.
    :
    : cosider the following code:
    :
    : int a=1, b=2, c=3;
    : a +=b += c +=7;
    :
    : write an equivalent statement that is fully parenthesized.
    : what are the values of variables a,b,c?
    : write a test program to check answers.
    :

    On my calculations c = 10, b = b + c = 12, a = a+b = 13.
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

In this Discussion