C Programming Code Examples
C > Beginners Lab Assignments Code Examples
A chat program in C
C++ Prim's Algorithm Finds the Minimum -
Find the minimum spanning tree of the given graph using Prims algorihtm. This algorithm is a "greedy algorithm" that finds a minimum spanning tree for a "Connected Undirected"
Convert Strings to UpperCase use Pointers -
C program to 'convert string' from Lowercase to uppercase string using loop. All characters are represented as an integer value known as "ASCII" value. Where A is represented with 65
C Concats Two Strings without Use Library -
We have to accept '2 Strings' from user using gets and we have to 'Concatenate' these two strings without using library functions. Inside the concate function we are firstly calculating
Count Occurrence Positive Zero Negative -
We have to enter some set of numbers. Now to find occurrence of positive, negative, zero from the given set of numbers, just check all the numbers using for loop whether number
C Language Code Investigating the Family -
C Function to input data on Family members. C Function to output data on people on file. Structure to hold data from file. Pointer to Family structure. File position. Open file for
Find the Frequency of Substring in Strings -
Take a string and a substring as input. Store it in the arrays 'str[] & str1[]' respectively. Using For Loop to 'compare' str1[] with the str[]. Do step2 until the end of main string. During the
Print Combination of 2 Words of 2 Strings -
Print combination of two words of two given strings without any repetition. Incrementing the count if the characters of the main string match with the characters of the given word.
C Program to Find Reverse of any number -
C program code to input a number from user and find reverse of the given number using for loop. Input number to find reverse. Store it in some variable say j. Declare & initialize...