 C Programming Code Examples

C > Arrays and Matrices Code Examples

C Program to Find the Trace & Normal of a given Matrix

Toggle Case of Each Character in A String - C program to 'toggle case' of each characters of a string using loop. Logic to toggle case of a 'given string'. Input string from user, store it in some variable say str. Run a loop from start

Convert from degree Fahrenheit to Celsius - C programming code to input temperature in degree Fahrenheit and convert it to degree Centigrade. Code convert temperature from Fahrenheit to Celsius in the C programming.

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

C Program to Print all the Elements of Nth - C Program code print all the Elements of nth level in single line. And adding node to binary tree. Prints all the nodes of all levels of the binary tree. Prints the nodes of a particular...

Generate All Possible Subsets With Exactly - Algorithm takes the input of "n" data element and 'prints all possible' combination of length 'k'. It maintains a boolean array of length 'n'. If the corresponding boolean value is true, then

Accept Sorted Array and do Binary Search - C Program accepts the sorted array and does search using "Binary Search". Binary search is algorithm for locating the position of an item in a 'Sorted Array'. A search of sorted data, in

C Coding Print all the Paths from the Root - C language program Function to store all the paths from the root node to all leaf nodes in a array. Function which helps the print_path to recursively print all the nodes. Function to...

C++ Codes String Matching in Linear Time - Create the Shift-Lookup-Table. Start with the second character, since the shift to the first is always 0. Search the "string" and return when the first occurrence is found. Searching string