Write short notes on:
(a)Literals
(b)C++
(c) Header file
(d) Library function
Answers
Answered by
19
Answer:
- Literals are the constant values assigned to the constant variables. We can say that the literals represent the fixed values that cannot be modified. It also contains memory but does not have references as variables. For example, const int =10; is a constant integer expression in which 10 is an integer literal.
- C++ is a general-purpose programming language created by Bjarne Stroustrup as an extension of the C programming language, or "C with Classes".
- A header file is a file containing C declarations and macro definitions (see Macros) to be shared between several source files. You request the use of a header file in your program by including it, with the C preprocessing directive ' #include '. Header files serve two purposes.
- Library functions are the ones that are predefined. like printf(), scanf() etc. Various useful tasks such as I/O operations or math operations are carried out using various library functions. In order to use these library functions you need to import appropriate header files.
Similar questions