Division of two numbers in C++

In this article, we have discussed various methods to divide two numbers in C++. These are simple program, you can learn them easily. Method-1 : With Hardcoded Inputs Output: 2 Method-2 : With user Inputs Output: Output depends on user inputs, that will be division of both numbers. Method-3 : With class Output: Output depends on user inputs,… Read More »

Subtraction of two numbers in C++

In this article, we have discussed various methods to subtract two numbers in C++. These are simple program, you can learn them easily. Method-1 : With Hardcoded Inputs Output: -1 Method-2 : With user Inputs Output: Output depends on user inputs, that will be subtraction of both numbers. Method-3 : With class Output: Output depends on user inputs,… Read More »

Addition of two numbers in C++

In this article, we have discussed various methods to add two numbers in C++. These are simple program, you can learn them easily. Method-1 : With Hardcoded Inputs Output: 11 Method-2 : With user Inputs Output: Output depends on user inputs, that will be sum of both numbers. Method-3 : With class Output: Output depends on user inputs,… Read More »

Introduction of Array Data Structure

Array is collection of items having same data type stored in contiguous memory location. An array is derived data type in C programming language which can store similar types of data in contiguous memory locations. Data may be primitive type, (i.e., int, char, float, double), address of union, structure, pointer, function or another array. Array implementation is important… Read More »

Difference between C and C++

1. C language : C was developed by Dennis Ritchie between the year 1969 and 1973 at AT&T Bell Labs to write Operating System. It is a procedural programming language and does not support classes and objects. 2. C++ language : C++ was developed by Bjarne Stroustrup in 1979. It has imperative, object-oriented and generic programming features. C++… Read More »

Identifier Naming rules in C language

Prerequisite – C Language Introduction In C any name is called identifier. This name can be: 1. Variable name 2. Function name 3. Enum constant name 4. Micro constant name 5. Goto label name And, any other data type name like, 6. Structure 7. Union 8. Enum names or Typedef name These are following rules that should follow:… Read More »

What is stdio.h and why do we use?

stdio.h is a header file in the C Standard Library, which is commonly used in C programming. It stands for “Standard Input/Output Header”. This header file defines a set of functions and macros that provide input and output capabilities for C programs. Some of the most commonly used functions in stdio.h are printf, scanf, fopen, fclose, fread, fwrite,… Read More »

What is conio.h and why do we use?

The word conio.h stands for console input-output and in programming, console means output window which is the window where the result of the execution of our program is displayed. This console window is automatically produced by our operating system and has some default settings. ‘conio.h’ is a header file used in C and C++. Most people don’t use it because… Read More »