FUNDAMENTALS OF COMPUTER

COMPUTER PROGRAMMING FUNDAMENTALS

PROGRAMMING LANGUAGES

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
The structure of programs. (tokens, keywords, statements etc.)
A
Semantics
B
Syntax
C
Either A or B
D
None of the above
Explanation: 

Detailed explanation-1: -The basic syntax of the C program consists of header, main() function, variable declaration, body, and return type of the program. The header is the first line in the C program with extension . h which contains macro definitions and C functions.

Detailed explanation-2: -A token is the smallest unit in programs. Keywords are predefined or reserved words that have their own importance. The main purpose of constant is to make the value fix. In C, identifiers are user defined words. Mainly used for naming variables, functions, arrays, structures etc.

Detailed explanation-3: -C Tokens are classified into: Keywords, Identifiers, Constants, Special Characters, Strings and Operators. Keywords in C are the collection of pre-defined values or the reserved words which have special meaning defined by the compiler.

There is 1 question to complete.