Happy Codings - Programming Code Examples
Html Css Web Design Sample Codes CPlusPlus Programming Sample Codes JavaScript Programming Sample Codes C Programming Sample Codes CSharp Programming Sample Codes Java Programming Sample Codes Php Programming Sample Codes Visual Basic Programming Sample Codes


C Programming Code Examples

C > For Loops and While Loops Code Examples

Program to find sum of odd numbers in given range





Coding find Maximum Minimum Element - Code to enter elements in an array from user and find maximum and minimum elements in array. C program to find biggest and smallest elements in an array. Input element in array...

C program Swap Numbers in Cyclic Order - C code three variables entered by the user are stored in variables x, y and z respectively. Then, these variables are passed to function cyclicSwap(). Instead of passing the actual...

Checks a Character is Vowel or Consonant - The five alphabets 'A, E, I, O and U' are called 'vowels'. All other alphabets except these five vowel letters are called consonants. Program above assumes that the user always enters an

C Program to Implement Stack Operations - C Implement stack operations using dynamic memory allocation. Use malloc function to allocate memory. Define separate functions for the operations like push, pop and display.

Find Sum of First & Last digit of a number - C program to input a number and find sum of first & last digit of the number using for loop. Input a number from user and store it in some variable say j. Find last digit of given number

Count Occurence of a Substring in a String - Program takes a string & a substring as input and "counts the occurrence of a substring" in string. Take a String and a Substring as input. Firstly check for the substring in the string. If

A destructor is a Special Member Function - In C++, Name should begin with tilde sign(~) and must match class name. There cannot be more than one "Destructor" in a class. Unlike "constructors" that can have parameters, and

Using Continue Statement Inside for Loop - As you can see that the output is missing the value 3, however the for loop 'iterate' though the num value 0 to 6. This is because we have set a condition inside loop in such a way, that