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

Check if a Number is Positive or Negative Using Nested if...else





How to Use Constructors in C++ language - Read the comments in the following program to understand each part of the program. This is a "default constructor" of the class, you do note that it's name is same as class name and

Prints Days in Month Logical OR Operator - The above logic is simple & easy to code. But it's lengthy and not optimal to implement. In the above solution we are performing same task for multiple conditions i.e. print 31 days

C++ Code Convert Hexadecimal to Binary - To convert "Hexadecimal" number to "binary" number in C++, you have to ask to the user to enter the hexadecimal number to convert it into binary number to display the equivalent

Enters Student Marks and Find Percentage - Write a C program code to input marks of five subjects Computer, Chemistry, Mathematics, Biology, Physics & Calculate Percentage and grade according to given conditions. Student

Fibonacci Series in C Language using Loop - C Program for Loop to display the Fibonacci series. Program prompts user for the number of terms and displays the series having the same number of terms. Program ask user to

Undirected Graph contains a Eulerian Path - Check if this graph is Eulerian or not. Check if all non-zero degree vertices are connected. If graph has no "odd degree vertex", there is at least one Eulerian Circuit. And if graph as two

Implimentation of a list using a Linked List - Operators declared on the type list. Reading a list from input. Writing a list on the output. Gets a list and returns its length. Getting an element and returns its positon in the list. If

Finds First Occurrence of a Word in String - How to find the 'first occurrence' of any word in a string in C. Input string from user, store it in a variable "str". Input word 'to be searched' from user, store it in some other variable say