Even though a lot of learners might consider C programming language as an out-dated language, but most of them are
Continue readingCategory: C programs
strcpy in C
Problem Statment: Given two Strings copy the contents of one string to another. Example 1: Input: str1=”Takeuforward”, str2=”” Output: str2=Takeuforward
Continue readinglcm of two numbers in C
Problem Statement: Find the LCM of the two given integers. Examples: Example 1: Input: n1 = 4, n2 = 8
Continue readingPointer in C
A pointer is a variable that contains the address of another variable. Declaration: dataType *PointerName ; Here, dataType must be
Continue readingTranspose of a Matrix in C
Problem Statement: Given a Matrix print the transpose of a matrix. Examples: Example 1: Input: mat[][] = 1 2 3
Continue readingString Concatenation in C
Problem Statment: Given two Strings concatenate one string to another and print the result. Examples: Example 1: Input: str1=”Take”, str2=”uforward”
Continue readingLinear Search in C
Problem Statement: Given an array, and an element num the task is to find if num is present in the
Continue readingStructure in C
If you are into programming, be it a newbie or an expert you might be well-versed with the primitive data
Continue readingMatrix Addition in C
Problem Statement: Given two matrices add the value of the two matrices and print the resultant matrix. Example 1: Input:
Continue readingFor Loop in C
In C and all other modern programming languages, iteration statements (also called loops) allow a set of instructions to be
Continue reading