C Programming Code Examples
C > Beginners Lab Assignments Code Examples
Bubble Sorting Algorithm
C Search All Occurrences of a Character in -
Write a C program to 'Search all Occurrences' of a character in a String using Loop. Logic to search occurrences of a character in the given string. Input String from user, store it in some
C++ Computes Discrete Fourier Transform -
This is a C++ Program to perform Fast Fourier Transform. A 'Fast Fourier transform' (FFT) is an algorithm to compute the discrete Fourier transform (DFT) & its inverse. Fourier analysis
C Perform Matrix Multiplication Recursion -
C program, 'using recursion', performs Matrix multiplication of 2 'matrices' and displays the result. We use 2 D array to represent a matrix & resulting matrix is stored in different matrix
Call Simple Programs for Functions in C++ -
A function is like a black box. It takes in input, does something with it, and then spits out an answer. We have some "terminology" to refer to functions: A function, call it f, and that uses
Programs Performs Naive String Matching -
C++ Program perform Naive String matching algorithm. "String Searching" algorithm is an important class of string algorithm that try to find a place where one or several strings (also
C Code Implement a Queue using an Array -
C program code ask the user for operation like insert, delete, display and exit. According to the option entered, access its respective function using switch statement and use the
Header file for AVL tree in C++ Language -
Insert x. Remove x (unimplemented). Return item that matches x. Return "smallest item". Return largest item. Return true if empty or else false. Print tree in sorted order. Return
C Operate Appropriately On The Numbers -
Program take two numbers and a operator as input and store it in the variables a, b and ch respectively. Using switch statement, test the operator stored in the variable ch. Print the