Page not found
Search results
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
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
C++ program to generate Fibonacci series
C++ program for Fibonacci series. C++ programming code #include<iostream> using namespace std ; main ( ) { int n, c, first = 0 , second = 1 , next ; cout << ...
Yogesh Suneja - 28/12/2017 - 15:18
Transpose of a matrix in C
Transpose of a matrix in C language: This C program prints transpose of a matrix. To obtain it, we interchange rows and ... = window.adsbygoogle || []).push({}); C program to find transpose of a matrix #include <stdio.h> ...
Yogesh Suneja - 13/12/2019 - 20:54