 # C Programming Code Examples

## C > Pointers Code Examples

### Program to Find Length of the String using Pointer

C Language Codes Finds Reverse of String - C Program code Find reverse of a given string using Loop. There are numerous ways to find Reverse of a String. First let us see the easiest method to find Reverse of String. Input string

C Code Find the GCD & LCM of 2 Integers - C Program calculates the GCD and LCM of 2 integers. Here gcd means greatest common divisor. For two integers a and b, if there are any numbers d so that a / d and b / d doesn't

Checking the Number is a Perfect Number - Program input a number and check whether the number is Perfect number or not. Perfect number is a positive integer which is equal to the sum of its proper positive divisors. So 6 is

C Programming coding Calendar example - This is because a leap year does not strictly fall on every fourth year. If a year is divisible by 4, then it is a leap year, but if that year is divisible by 100, then it is not a leap year.

C++ Program Finds Transpose of a Matrix - First we have to clear about what is transpose of a matrix. Its to replace the number of rows with number of colums, vice versa to make a new matrix. So for example if a matrix 'A' has

Find the Frequency of Substring in Strings - Take a string and a substring as input. Store it in the arrays 'str[] & str1[]' respectively. Using For Loop to 'compare' str1[] with the str[]. Do step2 until the end of main string. During the

Get Total Number of Notes in an Amount - C program to input amount from user & print minimum number of notes (Rs. 500, 100, 50, 20, 10, 5, 2, 1) required for the amount. Input amount from user. Store it in a variable 'amt'.

Pointer Simple Program Pass by Reference - C++ Language program sample which passes a "Reference" to a Function and Function has a 'pointer' as argument. Keep the return type void & display result in main body. Apply any