# C Programming Code Examples

## C > Functions Code Examples

### C program to find sum of natural numbers in given range using recursion

C Rightmost Occurence of Input Character -
Program to find out the rightmost occurence of an input character. Enter the character to be searched. Required character is found at position. Required character is not found in...

Simple Class Declaration in C++ language -
C++ language allows us to separate program-specific datatypes through the use of classes. "C++ Classes" define types of data structures and the functions that operate on those data

Program Computes the Area of a Triangle -
C++ Language code to compute the area of a triangle using determinants. The 'plus/minus' in this case is meant to take whichever sign is needed so the 'answer is positive'. Do not say

C How to Access the Address of a Variable -
In this program code, we have a variable j of int type. The value of j is 10 and this value must be stored somewhere in the memory, right? A memory space is allocated for each

C++ Implement Gift Wrapping Algorithm -
Implement Gift Wrapping algorithm to find convex hull in "Two Dimensional Space". In computational geometry, the gift wrapping algorithm is an algorithm for computing the

Substring Of String Without Using Library -
C program to find substring of string without using 'Library Function'. Accept input is state forward step. Call user 'defined function' and consider following strings are entered by the

C++ Program Checks Armstrong Number -
In c++ program, a positive integer is asked to enter which is stored in the variable origNum. The number is copied to variable num. This is done because we need to check the origNum

Multiply Two Matrix by Multi Dimensional -
In this program, "enter the size "of 2 matrix at first. To multiply two matrices, the number of columns of first matrix should be equal to the "number of rows" to second matrix. C++ Code