Author: M. Saqib

Multiplication of Two Matrices in C

This C code multiplies two 2×2 matrices. It prompts the user to input values for both matrices, displays the input matrices, performs matrix multiplication using nested loops, and then prints the resulting matrix. The code adheres to modern C standards, using printf and scanf for I/O and avoiding outdated functions for better readability and compatibility.

Read More

Different ways to initialize an array in C Programming

In C, an array can be initialized using aggregates, which are a collection of values enclosed in braces ({}) and separated by commas. Another way to initialize array by using a loop which allows you to set the initial values of an array using a more flexible and dynamic approach. The basic idea is to use a loop to assign values to each element of the array based on some condition or calculation.

Read More

Read, Print and Reverse Integer Arrays in C

This program serves as a practical example for beginners to understand array manipulation, function usage, and basic input/output operations in the C programming language. It also introduces concepts like function prototypes and error handling.

Read More

Finding the Prime Numbers in C

A prime number is a number greater than 1 that cannot be formed by multiplying two smaller natural numbers. A natural number greater than 1 that is not prime is called a composite number.

Read More

C Program to Add Sequence of Numbers

This C program reads a sequence of positive integers as input by the user and print their sum. The program keeps on taking the input from user until user enters number ( 0 ) and program calculates the sum of all input numbers. Finally this C program prints the sum of all the numbers on screen and terminates.

Read More

Data Structures and Algorithms Python: The Complete Bootcamp
View on Udemy