#include /* this is a sample program just showing some basic things in c */ int main( int argc, char** argv ) { int x; x=10; /* display hello world and display the name of the executable */ printf( "Hello World %s\n", argv[0] ); /* display the number of elements passed in as command line arguments */ printf( "There are %d elements\n", argc ); printf("x=%d\n", x); printf("x=%d\n", x + 12); /* add 12 to the value of x and store the results in the variable x*/ x += 12; /* at this point, x should be 22 */ /* increment the variable x by 1 */ x++; printf("x=%d\n", x); /* subtract 1 from x */ x--; printf("x=%d\n", x); printf("\n"); return 0; }