Examples

Examples

"hello, world!" program

Add two distances (in inch-feet) system using structures

Access elements of an array using pointer

Add complex numbers by passing structure to a function

Calculate power of a number

Swap numbers in cyclic order using call by reference

Find size of int, float, double and char in your system

Make a simple calculator to add, subtract, multiply or divide using switch...case

Print triangle, pyramid, pascal's triangle, floyd's triangle, etc.

Find the length of a string

Display factors of a number

Multiply two matrices by passing matrix to function

Add two matrix using multi-dimensional arrays

Find factorial

Find ascii value of a character

Find the number of vowels, consonants, digits and white spaces in a string

Calculate factorial of a number using recursion

Copy strings

Display prime numbers between two intervals

Convert octal number to decimal and vice-versa

Find lcm

Find largest element of an array

Find transpose of a matrix

Check whether a number can be express as sum of two prime numbers

Store information of a student in a structure

Find sum of natural numbers using recursion

Display prime numbers between two intervals using functions

Multiply two numbers

Convert binary number to decimal and vice-versa

Concatenate two strings

Generate multiplication table

Sort elements in lexicographical order (dictionary order)

Remove all characters in a string except alphabets.

Add two numbers

Reverse a number

Find largest number among three numbers

Calculate standard deviation

Calculate difference between two time period

Calculate average of numbers using arrays

Check prime number by creating a function

Check whether number is even or odd

Calculate power using recursion

Check leap year

Check whether a number is palindrome or not

Display fibonacci series

Find the frequency of characters in a string

Find g.c.d using recursion

Display armstrong number between two intervals

Store and display information using structure

Swap two numbers

Find quotient and remainder

Check whether a number is prime or not

Reverse a sentence using recursion

Find all roots of a quadratic equation

Calculate sum of natural numbers

Find gcd

Convert binary number to octal and vice-versa

Multiply two matrix using multi-dimensional arrays

Check armstrong number

Print number entered by user