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 > Recursion Code Examples


Page 1 Page 2



Generate All Subsets of a Given Set in the
Print all combination of a given length from the given array. Return if the currLen is more than the "required length". If currLen is equal to required length then "Print the sequence".

C Checking the Character is Alphabet Digit
C Programming input a character and Check whether given character is alphabet, digit or special character using if else. A character is alphabet if it in between a-z or A-Z. Character

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

Count Occurrence Positive Zero Negative
We have to enter some set of numbers. Now to find occurrence of positive, negative, zero from the given set of numbers, just check all the numbers using for loop whether number

C Program to calculate Area of a Polygon
Given the coordinates of the vertices of a convex polygon, calculate its area and perimeter. Subdivide it into triangles and calculate the area of each triangle with the

C++ Codes Check a Number is Palindrome
C++ sample ask to enter a number to reverse it, then check whether reverse is equal to its "original or not", if "it is equal" then it will be palindrome else it will be not be palindrome:

C Insert an Element in a Specified Position
C Program inserts an element in a specified position in a given array. C Programming language code takes a user input and inserts the desired element in the specified position.

C Code Check if an Integer is Odd or Even
C Language Program takes the given integer & checks whether the integer is odd or even. Take the integer to be checked as input. Find the remainder of the integer by dividing it by