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

C program to check Leap Year

Code Finds Second Smallest of n Elements - Linearly traverse the data array. Keep track of the "Smallest Number". Simultaneously keep updating the second smallest number also. A function to calculate second. If array element

C Finding Length of a String Using Pointer - C Language Program which will accept string from the user. Pass this string to the function. Calculate the 'Length of String' using pointer. gets() is used to accept string with spaces. Str

Program Code Implement Pigeonhole Sort - Code implement pigeonhole sort. Pigeonhole sorting, also known as count sort, is a sorting algorithm that is suitable for 'Sorting Lists' of elements where the Number of Elements (n)

Program Code Converts Decimal to Binary - How to convert from decimal number system to binary number system in C programming. C program to convert from Decimal to Binary number system. Input decimal number from

Program Implement Doubly Ended Queue - Inserting element into the "deque". Deleting element from the deque. "Insert" element in "doubly ended queue". Enter the value to be inserted. Element inserted into empty deque.

Structure is A Compound Data Type that - To store Student details like student 'name', student 'roll num', 'student age'. You have 2 ways to do it, one way is to create different variables for each data, but the downfall of

C++ Code to List Files in Current Directory - To list and "display/print" all the files present inside the current directory in The C++, use a pointer say dir of DIR and the pointer say pdir of dirent to open and "read directory" to print

Program Code Display Fibonacci Sequence - The Fibonacci Sequence is a series where the next term is the sum of pervious 2 terms. The first two terms of the Fibonacci sequence is 0 followed by 1. The sequence: 0, 1, 1, 2, 3, 5, 8,