♦ C Print
♣ About C Print
Print statements allow the program to write content to screen.All the Data Type's value can be printed on the screen.
♣ Example1: puts() in C
puts() is a simple built-in C-method for printing content on the screen.In this example, "Good Work" is printed on the screen.
Example
Input:
Output:
♣ Example2: printf() in C
printf() is another but sophisticated method printing content out on screen.In this example, "Excellent Progress" is printed on the screen.
Example
Input:
Output:
♣ Example3: printf() for printing various types of Data Types
In this example, various Data Types such as Character, String, Integer, Double, Float will be printed. Example
Input:
Output: