Solution for Exercise 6-12

ex0612

#include <stdio.h>

int main()
{
    int a,b,c;

    a = 5;
    b = 7;
    c = a + b;
    printf("Variable c=%d\n",c);
    return(0);
}

Notes

* The weirdo value — the output — is the value 12.