1. The second example in the notes got slightly scrambled. All the right characters are there, but in the wrong order. Fix it, compile it and run it.
    #include<stdlib.h>
    #include<stdio.h>
    
       /*This is a less simple program */
       
    int main(int argc, char* argv[])
    {
        if (getchar()=='a') printf("Success\n") 
                       else; printf("Failure\n");
        return EXIT_SUCCESS;
    }
    
    Here's the plain text to compile.

  2. This version compiles (or it should), but what messages do you get from the compiler and what do they mean?
    /*This is a less simple program */
       
    int main(int argc, char* argv[])
    {
        if (getchar()=='a') printf("Success\n"); 
                       else printf("Failure\n");
        return EXIT_SUCCESS;
    }
    
    Here's the plain text to compile.
Back to the notes.