 C Programming Code Examples

C > Arrays and Matrices Code Examples

C program for addition of two matrices in C

Program Generate All the Set Partitions of - This algorithm takes the 'Input of the Natural' number and prints all the possible partition of each number less than or equal to it. For each number, it starts with the number and breaks

Code Concatenates 2 Strings in One String - Concatenation of 2 strings is simple copying a string to another. To concatenate two Strings str1 & str2, you will copy all characters of str2 at the end of str1. 'Store it in' a variable str1 &

No sort, but reversing a [linked list] c code - Code add a lnode at the beginning of the list. Reverse the whole list. Display the whole linked list. Insert some numbers. Add a lnode at the beginning of the list. Add new node.

C++ Program to Implement LeftList Heap - In this, Merge rhs into the priority queue. rhs becomes empty. rhs must be different from this and Internal method to merge two roots. Deals with "deviant cases" and calls recursive

C++ language Decode a Message Encoded - This program decodes any message encoded by the technique of traditional playfair cipher. "The Playfair Cipher" is a 'Manual Symmetric' Encryption Technique and was the first literal

Pass Structure as an argument to Function - We have a function 'printStudentInfo()' which takes structure Student as an 'argument' and 'prints the details' of student using structure varaible. The important point to note here is

C++ Coding Find Factorial using recursion - User enters a number which stores in variable "num". Then number "passes as argument" in function call A static variable is used to check that how many times function is called. When

Generate Perfect Numbers in given Range - C Program Code to print all Perfect Numbers between 1 to n. A Perfect number is a positive integer which is equal to the sum of its proper positive divisors. Input upper limit from user