Tag Archives: C Programming Tutorial


A C program with a function that returns the minimum and the maximum value in an array of integers

void minmax(int array[],int length,int *min,int *max); //prototype Let’s identify variables needed for this program. In this program, we need several variables to store array of decimal numbers and count the length of array and store minimum and maximum of the array. First variable will be the one which will save the list of integers in… Read More »

A C program to process the students evolution records using structures

Let’s identify variables needed for the structure inside the program. In this student structure, we need several variables to store string as name and number for enrollment number and marks of student appeared in the term end examination. First variable will be the one which will save the enrollment number and it will be ENROL.… Read More »

A C program to input a string and output the reversed string using pointer notation

Let’s identify variables needed for this program. In this program, we need several variables to store string and count the number of characters in the given string. First variables will be the one which will save the string entered by the user and reverse of it. So it will be S[50] and R[50]. In C… Read More »

A C program with a function that will return the length of a character string without using inbuilt function

Let’s identify variables needed for this program. In this program, we need several variables to store string and count the number of characters in the given string. First variable will be the one which will save the string entered by the user and it will be S[50]. In C language we do not have string… Read More »

A C program to count number of vowels, consonants & spaces in a given string

Let’s identify variables needed for this program. In this program, we need several variables to store large sentence and count the number of occurrences in the given sentence. First variable will be the one which will save the sentence given and it will be S[]. Keeping the square bracket blank means it will take the… Read More »

A C program to convert a given lowercase string to uppercase string without using the inbuilt string function

Explanation of FUNCTION: A function is a block of code that has a name and it has a property that it is reusable i.e. it can be executed from as many different points in a C Program as required. Function groups a number of program statements into a unit and gives it a name. This… Read More »