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 > Bitwise Operators Code Examples

C program to check Least Significant Bit (LSB) of a number is set or not

Find the Length of the String by Recursion - C Program uses recursive function and counts the number of nodes in a Linked List. A linked list is an 'Ordered Set' of data elements, each 'containing a link' to its successor. Recursive C

C Program to generate nth Fibonacci term - C Code Declare recursive function to find nth Fibonacci term. Assign a meaningful name to the function, say fibo(). The function accepts an integer hence update function declaration

C++ Programming Opens Reads Text Files - This function reads n lines from a file. Returns the amount of bytes read. Try to open txt file. Try to locate the starting line. Set the starting position. Read the lines. Close the file. Return

C Convert Lowercase String to Uppercase - C user would be asked to enter a lower case String and the program would convert it into a Upper case String. Logic followed in the program: All lower case characters (a to z)

C++ Program Reverse an Integer Number - This takes an integer input from the user and stores it in 'variable n'. Then the while loop is iterated until n != 0 is false. In each iteration, the remainder when the value of n is divided

Display message by format with the printf - The number of characters actually printed. A negative value indicates failure. Hexadecimal output in the form. Signed decimal integers. Scientific notation. Decimal floating point.

Implement Find all Cross Edges in a Graph - This C++ program, "using recursion", displays the number of cross edges in a graph. A cross edge is one in which a node points to another node which has already been fully visited. Int

C Program to Prints 3 Characters forward - Prints 3 characters forward and backward to demonstrate character printing in C program code example. Define the first character, define the second character, define the third