To get latest updates

Bookmark This Site

Sunday, 23 October 2016

C Programming Home

C Programming Examples

This page contains examples on basic concepts of C programming like: loops, functions, pointers, structures etc. All the examples in this page are tested and verified on GNU GCC compiler, although almost every program on in this website will work on any compiler you use. Feel free to copy the source code and execute it in your device.



Choose Topic

1.C "Hello, World!" Program
2.C Program to Print an Integer (Entered by the User)
3.C Program to Add Two Integers
4.C Program to Multiply two Floating Point Numbers
5.C Program to Find ASCII Value of a Character
6.C Program to Compute Quotient and Remainder
7.C Program to Find the Size of int, float, double and char
8.C Program to Demonstrate the Working of Keyword long
9.C Program to Swap Two Numbers
10.C Program to Check Whether a Number is Even or Odd
11.C Program to Check Whether a Character is Vowel or Consonant
12.C Program to Find the Largest Number Among Three Numbers
13.C program to Find all Roots of a Quadratic equation
14.C Program to Check Leap Year
15.C Program to Check Whether a Number is Positive or Negative
16.C Program to Check Whether a Character is an Alphabet or not
17.C Program to Calculate the Sum of Natural Numbers
18.C Program to Find Factorial of a Number
19.C Program to Generate Multiplication Table
20.C Program to Display Fibonacci Sequence
21.C Program to Find GCD of two Numbers
22.C Program to Find LCM of two Numbers
23.C Program to Display Characters from A to Z Using Loop
24.C Program to Count Number of Digits in an Integer
25.C Program to Reverse a Number
26.C Program to Calculate the Power of a Number
27.C Program to Check Whether a Number is Palindrome or Not
28.C Program to Check Whether a Number is Prime or Not
29.C Program to Display Prime Numbers Between Two Intervals
30.C Program to Check Armstrong Number
31.C Program to Display Armstrong Number Between Two Intervals
32.C Program to Display Factors of a Number
33.C Programming Code To Create Pyramid and Structure
34.C Program to Make a Simple Calculator Using switch...case
35.C Program to Display Prime Numbers Between Intervals Using Function
36.C Program to Check Prime or Armstrong Number Using User-defined Function
37.C Program to Check Whether a Number can be Expressed as Sum of Two Prime Numbers
38.C Program to Find the Sum of Natural Numbers using Recursion
39.C Program to Find Factorial of a Number Using Recursion
40.C Program to Find G.C.D Using Recursion
41.C Program to Convert Binary Number to Decimal and vice-versa
42.C Program to Convert Octal Number to Decimal and vice-versa
43.C Program to Convert Binary Number to Octal and vice-versa
44.C program to Reverse a Sentence Using Recursion
45.C program to calculate the power using recursion
46.C Program to Calculate Average Using Arrays
47.C Program to Find Largest Element of an Array
48.C Program to Calculate Standard Deviation
49.C Program to Add Two Matrix Using Multi-dimensional Arrays
50.C Program to Multiply to Matrix Using Multi-dimensional Arrays
51.C Program to Find Transpose of a Matrix
52.C Program to Multiply two Matrices by Passing Matrix to a Function
53.C Program to Access Elements of an Array Using Pointer
54.C Program Swap Numbers in Cyclic Order Using Call by Reference
55.C Program to Find Largest Number Using Dynamic Memory Allocation
56.C Program to Find the Frequency of Characters in a String
57.C program to count the number of vowels, consonants and so on
58.C Program to Remove all Characters in a String Except Alphabet
59.C Program to Find the Length of a String
60.C Program to Concatenate Two Strings
61.C Program to Copy String Without Using strcpy()
62.C Program to Sort Elements in Lexicographical Order (Dictionary Order)
63.C Program to Store Information(name, roll and marks) of a Student Using Structure
64.C Program to Add Two Distances (in inch-feet) System Using Structures
65.C Program to Add Two Complex Numbers by Passing Structure to a Function
66.C Program to Calculate Difference Between Two Time Periods
67.C Program to Store Information of Students Using Structure
68.C Program to Store Information Using Structures with Dynamically Memory Allocation
69.C Program to Write a Sentence to a File
70.C Program to Read a Line From a File and Display it
71.C Program to Display its own Source Code as Output
72.C Programming Code To Create Pyramid and Pattern

No comments:

Post a Comment