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 »

“- ->” operator in C and C++

Actually, “- – >” is not an operator, but this is combination of two separate operators, “- -” and “>” . So, if you write it as It will print following output, 9 8 7 6 5 4 3 2 1 0 Because conditional’s code decrements x, while (x- – > 0) Statement could be written as follows:… Read More »