Programming in C, Reserved Words, Header File in C++

 Question 1: What are reserved words? Why they should not be used as variable names?

Answer: The words that are part of programming language and have special purposes in computer programs are reserved words or keywords. They have predefined use and cannot be used for any other purpose. Reserved words are always written in lower case. There are 32 words defined as reserved words in C.

Reserved Words

Question 2. Describe the purpose of header files.

Answer: C language contains a number of standard functions in library file that perform various tasks in c programs. These tasks include all the input/output operations and all the math operations. Library file contains header files and each header file contains a set of functions. Some commonly used header files are stdio.h, conio.h and math.h. Some commonly use functions that are included in stdio.h file are prinf(), scanf(), etc

Header File



Comments

Popular posts from this blog

Conditional Control structure. Chapter 4, Lab Activities, Long questions.

Chapter # 5, Loop Control Structure, Lab Activities