/* demo1.c - first demo program */ #include /* for printf definition */ #include /* where EXIT_SUCCESS is defined, among others */ int main(int argc, char *argv[]) { int x; int y = 34; printf("Please enter an integer: "); scanf("%d", &x); /* &x produces the address of x NOT the value in x */ printf("x= %d y= %d\n", x, y); /* format, format, format... */ return 0; /* could also return EXIT_SUCCESS */ }