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

Prints 3 characters forward





Writing Data into a Text File C++ program - A 'while loop' is used and will terminate when user will press esc key. To get the characters a function 'getche()' is used from conio.h which will store in 'char variable' & store into the file

C program code to set nth bit of a number - We use bitwise OR | operator to set any bit of a number. C Bitwise OR operator evaluate each bit of the resultant value to 1 if any of the operand corresponding bit is 1. Input the

Reverse a Number Check it is Palindrome - Take the Number which you have to Reverse as the input. Obtain its quotient & remainder. Multiply the Separate variable with 10 & add the obtained remainder to it. Do step 2 again

C++ Language & Concatenate Two Strings - Combined two strings means add both string with each other, perform this operation using 'library function' or without library function. If first string is 'john' and second string is porter

C Program Codes Search Element in Array - C program example read elements in an array and search whether an element exists in the array or not. Program to search an elements in an array linearly. There are two searching

C++ Using Simple Hierarchical Inheritance - In C++ Language, The relationships of objects or classes through "Inheritance" give rise to a hierarchy. In hierarchical inheritance a single class serves as a superclass for more than one

Program to Find Largest Element of Array - To find the "Largest Element", the first two elements of array are checked and largest of these two element is placed in arr[0]. Then, the first and third elements are checked and

C++ Finding Median of Two Sorted Arrays - Program find the 'median' of elements where elements are stored in 2 'different arrays'. We need to find 'combined' median of 2 different 'data set'. So it includes sorting of both arrays