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 > If Else and Switch Case Code Examples

Program to create calculator using switch...case and functions





Find Armstrong number in C++ Language - In math, A number in which the sum of cube of its individual digits is equal to the number itself is called Armstrong number. 1^3 + 5^3 + 3^3 = 153. To make logic firstly concept about

C Put Even & Odd Elements of an Array in - C Program puts even & odd elements of an array in 2 separate arrays. The program first finds the odd and even elements of the array. Then the odd elements of an array is stored

Print some General File info in C program - Filename, device, inode, protection, number of hard links, user ID of owner, group ID of owner, device type, total size, blocksize for filesystem I/O, number of blocks allocated,

C Sample Code Display Arrays Print Arrays - C program will let you understand that how to print an array in C. Declare and define one array and then loop upto the length of array. At each iteration we shall print one index...

Find Palindrome Number in C++ language - We already known that if reverse of a number is equal to the same number, it is Palindrome number. Remember it: certain variables and a loop use to get the reverse of a number which

C Trim Leading White Spaces from Strings - Program Trim leading white space characters from a string. Remove "Leading Whitespace" characters from the string. Find Last index of whitespace character. White space character

Trim Leading & Trailing white spaces from - I already explained how to remove leading as well as trailing white space characters from a given string. In this program we will Combine the logic of both in a single program. Logic to

String Functions strcmp Compares Strings - C function 'compares' the two strings, returns an integer value. If both the strings are 'same' then this function would return 0 otherwise it may return a negative or positive value based