varx
Create a text file called varx.c that contains the following C program:
#include <stdio.h>
int main()
{
int x = 3;
printf ("The value of x is %i\n", x);
return 0;
}
- Compile and run the program.
- Change the message so that it prints out the value of
xfirst (e.g. "3, this is the value of x").
Re-compile and re-run the program.