Preprocessor directives in c programming Preprocessor Directives : The preprocessor, as its name implies, is a program that processes the source code, before it passes through the compiler. It operates under the control what is known as ‘Preprocessor directive’ or ‘Command line’. They are placed in source program before the main line. A preprocessor is…

Explain Formatted and unformatted console input output function Formatted and Unformatted Console I/O Function: Console input-output functions are used to receive input from the keyboard and write output to VDU i.e. Video Display Unit. The screen and keyboard together are called a console. Console input-output functions can be further classified into two categories-formatted and unformatted…

Types of Data used in C: C supports several different types of data each of which may be represented differently within the computer’s memory. The basic data types are listed below: Sno.      Data Type    Description    Memory Requirements      Examples   1. int Integer 2 bytes or one word int i,j; 2. char Single Character…

Explaining user-defined data types with Example User-Defined Data Types: Read This: Fundamental data types and sizes used in C Programming C also provides users a feature to definite their own data types which can later be used to declare variables. This feature is known as “type definition,” that allows a user to define an identifier that…

Define Constants used in C Programming with Example Constant : A constant is a data value or quantity, which is not changed. The constant is classified as two types. The primary constants are the basic constants to be used in a C program as the character constants, integer constant and real constant. 1.    Integer Constants:…

Difference between Structure and Union Structures and Unions: A structure is a collection of dissimilar data types. A structure may be defined in terms of its individual members. In general terms, the composition of a structure may be defined as struct tag {    member 1; member 2; member n; }; In this declaration, a struct…

Different types of constants available in C Programming Constant in C  Programming are classified into four categories namely Integer constant, real constant, character constant and string constants. 1. Integer Constant: Integer constant reference to the sequence of the digit. It must not have any character except digit, however, an integer constant may be preceded by…

What is Variable and its Scope in C Programming Variable : A variable is a name given to some known or unknown quantity. It is a means of symbolically representing a data storage location and its content, a quantity which could change numerous times during the course program execution. Scope of Variable: The scope of…

What are Symbolic Constant and its advantages in C Programming? Symbolic Constant: A symbolic constant is a name that substitutes for a sequence of characters. The characters may represent numeric constant, a character constant or a string constant. Thus, a symbolic constant allows a name to appear in place of a numeric constant, a character…

Fundamental data types and sizes used in C Programming ANSI C supports four classes of data types Primary data types, User-defined data types, Derived data types, Empty data set. All C compilers support four fundamental data types, namely integer (int), character (char), floating point (float) and double precision floating point (double). Many of them also…