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 > Arrays and Matrices Code Examples

C program to find maximum and minimum element in array





Triangle is Valid or not if Angles are given - C Program code to check whether a Triangle is valid or not if angles are given using if else. Input all three angles of triangle in a variable say angle1, angle2 and angle3. Find sum of...

Perform Preorder Non-Recursive Traversal - C++ Program to "Print Preorder Traversal" of a given binray tree without using recursion. A binary tree node has data, left child and right child. "Helper Function" that allocates a new

Program to Reverse every Word of Strings - Program 'takes a string', reverses every word of the string. Take a string as input and store each word of the input string in the separate rows of the '2-D array'. Reverse each word of

The C++ Implementation for Binary Heap - Capacity is the capacity of the "binary heap". Duplicates are allowed. "Throw Overflow" if container is full. Find the smallest item in the "priority queue". Return the smallest item, or

C++ Find kth Largest Element in Sequence - A Function to build max heap from the initial array by checking all non-leaf node to satisfy the condition. And build "max-heap" k times, extract the 'maximum' and store it in the end

C Least Significant Bit (LSB) of a number is - C program code input any number from user and check whether the Least Significant Bit (LSB) of the given number is set (1) or not (0). How to check whether the least significant...

C Program Code Write a Sentence to a File - Program stores a sentence entered by user in a file. After termination of this program, you can see a text file program.txt created in the same location where this program is located.

C Add Corresponding Positioned Elements - C Program to Add Corresponding Positioned Elements of 2 Linked Lists, function to create nodes of numbers, function to display the list of numbers, function to free the allocated list