printf() #2

The following program prints text to the screen. No variables are used. Two printf() functions used to display the text without a new line character.

        
            #include <stdio.h>
            
            int main()
            {
             
              printf("Bust a ward.");
              printf("Draw a stub.");
             
             return 0;
            }
        
    

In this program, two printf() statements are used. Both statements will appear on the same line with no spaces in between the words.

The key difference between this program and the program prior, is the use of a second printf() statement.

NextBackHome