Share
Explore BrainMass

Test Program in C

****THIS NEEDS TO BE IN "C" NOT C++****

Consider the following code:

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

What are values of a, b, and c?

Write a test program in "C" to check it.

Solution Summary

This solution analyzes the code and determines the value of a,b and c. It also writes a test program in C to check the values obtained.

$2.19