 # C Programming Code Examples

## C > Functions Code Examples

### program to find maximum and minimum using functions

Calculate Display the Grade of the Student - To calculate "grade of a student" on the basis of his total marks in C++ Programming, ask to the user to enter marks obtained in some subjects (5 subjects here). To calculate grade

Find the First Occurrence of a Character in - C program to 'input any string' from user and find the 'first occurrence' of a given character in the string. Input string from user and store it in a variable say "str". Run a loop from start

C++ Programming Finds Length of Strings - To find the length of the string in 'C++', ask to enter the string and then Find the Length the that string using function "strlen()" of string.h library and display the length value of a string

C++ Program Code Implement Radix Sort - In this algorithm Sorting of Data is done from least significant digit to most significant digit. Here we need 10 different spaces labeled 0 to 9. Assume we have "n" Number of inputs. Let

Minimum Occurring Characters in a String - Write a C program to find minimum occurring character in a string. Initialize frequency of all characters to 0 and then "Finds Frequency" of each characters. "Finds minimum frequency".

Combinations Using Matrix Multiplication - A C++ function to find the factorial of a given number using matrix multiplication method. Assigning numbers from "1 to n" to the super diagonal indexes of the matrix and assigning

Code Find Maximum Between 2 Numbers - C program code to input two numbers and find maximum between two numbers using conditional/ternary operator ?:. How to find maximum minimum between two numbers

Check Whether the Number is Palindrome - If the reversed integer is equal to the integer then, that number is a palindrome if not that number is not a palindrome. In program, use is asked to enter a 'positive number' which is