COMPUTER PROGRAMMING FUNDAMENTALS
PROGRAMMING LANGUAGES
Question
[CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
|
|
Semantics
|
|
Syntax
|
|
Either A or B
|
|
None of the above
|
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.