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…

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…