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

an example of using an array for two tasks





Find Fibonacci Series Understanding Logic - The Fibonacci series is infinite but we can not make a C++ program that display an "infinite" output. In program, we take input the "range" in integer upto which Fibonacci series will be

Find an Input Substring in an input main - C Programming example code to find an input substring in an input main string. The given sub-string is present in the main string. The given sub-string is not present in the...

C Programming Code Use Goto Statement - The goto statement is rarely used because it makes program confusing, less readable and complex. Also, when this is used, the control of the program won't be easy to trace, hence

Reads Strings from a File in Reverse Order - Program code to find out how many strings there are. Read string length. Check buffer is large enough and increase if necessary. Now get the position for the beginning of each...

Take decimal number as input & converts - C Program take a decimal number as input. Divide the input number by 8 and obtain its remainder and quotient. Store the remainder in the array. Repeat the step 2 with quotient

Program Implements First Fit Decreasing - This is a C++ Program to implement First Fit Decreasing for one dimensional objects and M bins. This is bin packing algorithm for first fit technique. Bubble Sort descending order

Remove Last Occurrence of Word in String - Remove the 'last occurrence' of any word in a string using Loop in C Language. Input string from user, store it in some variable say string. Input word to be 'searched' from user, store it

Calculate Display the Grade of the Student - To calculate "grade of a student" on the basis of his total marks in C++ Programming, ask to the user to enter marks obtained in some subjects (5 subjects here). To calculate grade