Page not found
Search results
Matrix multiplication in C
Matrix multiplication in C language to calculate the product of two matrices (two-dimensional arrays). A ... || []).push({}); Matrix multiplication in C language #include <stdio.h> int main ( ) { int m , n , p , q , c , d , k , sum = 0 ; int first [ 10 ] [ ...
Yogesh Suneja - 12/12/2019 - 00:47
C program to add two complex numbers
C program to add two complex numbers: this program performs addition of two ... to store a complex number. Complex numbers program in C language #include <stdio.h> struct complex { ... ( ) { struct complex a , b , c ; printf ( "Enter a and b where a + ib is the first ...
Yogesh Suneja - 23/11/2019 - 11:40
Conditional compilation in C programming language
Conditional compilation in C programming language: Conditional compilation as the name implies that the ... the following code to quickly understand the scenario: C program #include <stdio.h> #define x 10 int ... 0 ; } Conditional compilation example in C language #include <stdio.h> int main ( ) { ...
Yogesh Suneja - 23/11/2019 - 11:40
Linked list in C
... * next ; } ; Linked list program in C #include <stdio.h> #include <stdlib.h> struct node ... will help you to learn the tree data structure. C programming: C programs ...
Yogesh Suneja - 08/12/2019 - 00:36
C read file
How to read a file in C? You already know what a file is and their types (text/binary ... they are present on the hard disk. Suppose you made a C program last week to sort numbers, and you wish to see the program again. How ... we discuss reading text files only. Let's write a C program to open a file from a hard disk whose name is entered by a user and ...
Yogesh Suneja - 25/10/2020 - 21:59
C sound program
... sound of a specified frequency. Used for adding music to a C program, try to use some random values in loop, vary delay and enjoy. Declaration: void sound(unsigned frequency); C programming code for sound (Turbo C compiler only) #include <dos.h> ...
Yogesh Suneja - 28/09/2018 - 10:51
Area of a circle in C
C program to find the area of a circle: C programming code to calculate the area of a circle. In the program, we use ... write the program now. Area of a circle program in C #include <stdio.h> #include <math.h> int main ( ...
Yogesh Suneja - 04/11/2020 - 13:21
C++ program to reverse a number
C++ program to reverse a number using a class. It can be used to check if an integer is a palindrome or not. C++ program to reverse a number #include <iostream> using ... std ; class Operations { long c ; public : void inputNumber ( ) { ...
Yogesh Suneja - 22/11/2019 - 22:04
Palindrome number in C
... If both are the same, it's a palindrome otherwise not. C palindrome string program . (adsbygoogle = window.adsbygoogle || []).push({}); C program for palindrome number #include <stdio.h> int main ...
Yogesh Suneja - 09/10/2020 - 23:18
C++ program for prime numbers
C++ program to print first n prime numbers. C++ program #include <iostream> #include <cmath> using ... int n, status = 1 , num = 3 , count, c ; cout << "Enter the number of prime numbers to print ...
Yogesh Suneja - 22/11/2019 - 22:07