Menu

C Programming examples

This webpage contains a collection examples on basic concepts of C programming

*Introduction:-

Program to Print "Hello World!" Program to Print an Integer Program to find sum and average of two numbers Program to Find ASCII Value of a Character Program to Swap Two Numbers Program to Find the Size of any data type Program to calculate simple interest Program to convert temperature from Fahrenheit to Celsius Program to convert temperature from Celsius to Fahrenheit Program to find area

*Program Structure:-

Program to Check Greatest no Program to Check Whether a Number is Even or Odd Program to Calculate the Sum of Natural Numbers Program to Print tables Program to Find Factorial of a Number Program to Display Fibonacci Sequence Program to Display Characters from A to Z Using Loop Program to Check Whether a Number is Palindrome or Not Program to Check Whether a Number is Prime or Not Program to Make a Simple Calculator Using switch Program to Print star pattern

*Function:-

Program to Display Prime Numbers Between Intervals Using Function Program to Find Factorial of a Number Using Recursion Program to Find the Sum of Natural Numbers using Recursion Program to Print fibonacci series using Recursion Program to Count digits of a number using Recursion

*Array

Program to Insert and Print intregar Program to Calculate Average Using Array Program to Add of Two One Dimensional Arrays Program to Multiply of Two One Dimensional Arrays Program to Sort a One Dimensional Array in Ascending Order Program to Sort a One Dimensional Array in Descending Order Program to Reverse Array elements Program to Create Matrix Using Multi-dimensional Arrays Program to Add Two Matrix Using Multi-dimensional Arrays Program to Sub Two Matrix Using Multi-dimensional Arrays Program to Multiply Two Matrix Using Multi-dimensional Arrays Program to Find Transpose of a Matrix

*Pointer

Program to Create, Initialize, Assign and Access a Pointer Variable Program to Access Elements of an Array Using Pointer Program Swap Numbers Using Call by Value Program Swap Numbers Using Call by Reference Program to Find Largest Number Using Dynamic Memory Allocation Program to Input and Print Using Dynamic Memory Allocation Program to Create Memory For Data-type Using Dynamic Memory Allocation Program to Print a String Using Pointer

*User-defined Data type

Program to Add Two Complex Numbers Program to Add Two Time Program to Store Information(name, rollno and marks) of a Student Using Structure Program to Store Information(name) of a Student Using Union Program to Show Branch code Using Enum in C

*Input/Output with file

Program to Create, Open and Close a File. Program to Write a Sentence to a File Program to Read a Sentence to a File Program to Write a Line to a File Program to Read a Line to a File Program to Write to a File Using Binary Program to Read to a File Using Binary