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

C Program to Display the Inventory of Items in a Store

Function Call by Reference Swap numbers - Here we are swapping the numbers using call by reference. As you can see the values of the variables have been changed after calling the swapnum() function because swap happened

C Language Break Statements Switch Case - Break Statements are useful when you want your program-flow to come out of the switch body. Whenever break is encountered in the switch body, the control comes out of switch

C Programming code open a file by fname - Returns a FILE pointer on success or NULL pointer on failure. Open text file for reading, create a text file for writing, append to text file, open binary file for reading, create binary

Perform Input Output all Basic Data Types - C language program demonstrate input and output of all basic and derived types. How to use scanf() & printf() function perform input and output on primitive types in C language.

Writing Comment in C program examples - Commenting in C programming language. This is a using single line comment example. This is a using mult-line comment. Slash that's not a commment, divide operator...

Convert a Given Number of Days in Terms - C language program take the number of days as input. For the number of years, divide the input by 365 and obtain its quotient. For the number of weeks, divide the input by 365 and

Program Remove given Word from String - This program takes string and its substring as input, removes the Substring from the string. Take a string, its substring as input and Store it in the array str[] & key[] respectively. Store

Print Armstrong Numbers from 1 to 1000 - Program code print Armstrong Number from 1 to 1000. An Armstrong number is an n-digit base b number such that the sum of its (base b) Digits Raised to the Power n is the number