Q27: Define the following:

 A27:

(i) Program: A program is a set of instructions for a computer to follow which is saved in a file.

(ii) main: It is a C keyword and main function of C program. Every C program always start with main function.

(iii) Header file: It is a file that contains declarations, prototypes, and definitions of functions, variables, constants that can be used in one or more source code files.

(iv) Compiler: It sums the whole program at a time and trends out error if any. Compiler converts whole source code into object code at a time.

 

(v) Token: It is the smallest unit of a programming language's syntax. It represents individual elements such as keywords, identifiers, operators, constants, and punctuation symbols, used by the compiler.

 

(vi) Keyword: Keywords are the predefine and preserved words in C and each of which is associated with specific feature and meaning to the compiler. There are 32 keywords in C language.

 

(vii) Variable: A variable represents a named storage location in a computer's memory. Variables are used to store and manipulate data during the execution of a program.

 

Post a Comment

0 Comments
* Please Don't Spam Here. All the Comments are Reviewed by Admin.