#include/*This is an even less simple program */ int main(int argc, char *argv[]) { int CharVal; float F1, f2; int f1; CharVal = getchar(); if (CharVal=='a') printf("%s Success\n",argv[1]); else printf("Failure\n"); return EXIT_SUCCESS; }
The variables are CharVal and f1, which are both of type int, plus F1 and f2, which are both of type float.
Here is a plain text version of the example for you to compile and run.
The program should compile and run OK. F1 and f1 are distinct, since C is case sensitive when identifying variables.