Join our newsletter for the latest updates.
C Introduction Examples

C Introduction Examples

In this article, you will find a list of simple C programs such as: displaying a line, adding two numbers, find ASCII value of a character, etc.

We have learned about the following topics so far:

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

To understand these topics better, we have created some examples.

Before you go through these examples, we suggest you to try creating these programs on our own.

We understand that programming can by start If you are just a programming newbie. In that case, go through each example below and see if you can understand them. Once you do that, try writing these programs on your own.


C program to print a sentence
C program to print an integer entered by the user
C program to add two integers entered by the User
C program to multiply two floating-point numbers
C program to find ASCII value of a character entered by the user
C program to find quotient and remainder of Two Integers
C program to find the size of int, float, double and char
C program to demonstrate the working of keyword long
C program to swap two numbers