C Programming Code Examples
C > If Else and Switch Case Code Examples
Program to check vowel or consonant using ASCII value
C Codes Displays Largest Element of Array -
This C Program takes n number of elements from user and stores it in array arr[]. To find the largest element, the first two elements of array are checked and largest of these two...
Check Vowel or Consonant use switch case -
Program to check Vowel or Consonant using switch-case statement. I already explained in sample to print number of days in months, if switch case contains same action for multiple
C Delete all Duplicate Elements from array -
Delete all duplicate elements from an array. C program code to remove all duplicate integer values from an array. After performing delete operation array should only contain unique...
C++ Programming Array Sort Bubble Sort -
To sort an array in ascending order by bubble sort in C++ language, you have to ask to user to enter the array size then ask to enter array elements, start sorting the array elements by
Find the Largest Number Present in Array -
To find the largest element in an array in C++ programming, enter the array size, enter the array elements. Start finding for the Largest element in the array to "Display the Largest"
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
Display the contents of structure elements -
C Program code to use structure within union & display the contents of structure elements. Problem statement: Create one structure and declare it inside union. Then accept values for
Searchs Specified File Specified Character -
C programming language code to search specified file for specified character. See if correct number of command line arguments. Opening file for input and look for character.