Showing posts from October, 2021
The quantity that doesn’t changes in the program is called as the constant . It can be defined using #define preprocessor directive or by using const keyword. There are four types of constant in C programming: 1. Integer Constants An integer consta…
The set of character that are used to form words, numbers and expressions are called character sets . 1. Letters A ….. Z and a ….. z 2. Digits 0, 1, 2, 3, ……….., 8, 9 3. Special Characters # ^ ; , . * etc. 4. …
There are following structures of a basic C program. Documentation Section Documentation section consists of a sets of comment lines including name of the program, name of the author and other details. This section uses comments. It is written after /…
All three functions are unformatted input functions that takes only one character at once from the user. But nature of taking inputs by each is different. getchar(); After you press a character it will show character to be input and then you have to p…
Preprocessor directives are the special instructions which are executed before code passes through the compilation process. It begins with hash (#) symbol and do not require semicolon at the end. One of the most important preprocessor directive is #i…
Escape Sequence: Download this note. Escape Sequences are the non—printing characters used in C programming. It is a character combination consisting of a backslash (\) which is followed by a character. It is used to specify actions such as carriage …
There are 3 types of operators in C Program on the basis of the numbers of operators : Unary Operators: The operators that requires only one operands to give the result is known as unary operators . For example: a++; ++a; --a; a--; b…