C Programming Introduction Examples

You will learn to write simple programs such as displaying a line, adding two numbers, and finding ASCII value of an character in this article.
C Introduction Examples

This page provides examples on basics of C programming language like: input/output, arithmetic operations etc.

To understand these example, you should have basic knowledge on following topics:

  1. Variables and Constants
  2. Data Types
  3. Input and Output in C programming
  4. Operators

C Introduction Examples

C Program to Print a Sentence
C Program to Print a Integer Entered by a User
C Program to Add Two Integers Entered by User
C Program to Multiply two Floating Point Numbers
C Program to Find ASCII Value of Character Entered by User
C Program to Find Quotient and Remainder of Two Integers Entered by User
C Program to Find Size of int, float, double and char of Your System
C Program to Demonstrate the Working of Keyword long
C Program to Swap Two numbers Entered by User