web analytics

What is keyword and identifier ? What are the rules for identifier?

Keywords: Keywords have fixed meanings and these meanings can not be changed. There are 32 keywords. Some compiler may use additional keywords that must be identified from the C manual. Keywords serve as basic building block for a program statement. Such as, auto, break, double etc. All keyword must be written in lowercase. Identifiers: The names of variables, functions … Read more

Write shortly about the character set in C.

Character set: The various category of characters are called the character set. In C, the characters are grouped into the following categories. Letters: Uppercase     A………………Z Lowercase     a……………….z Digits: All decimal digits. 0…………….9 Special characters: such as,           comma.           period;           semicolon:           colon White spaces: Such as blank spaces, horizontal tab, new line etc.

Define information, program, syntax rules or grammar and syntax errors.

Information: After converting or processing the data which may consists of numbers, characters, strings etc to something which is useful and make much sense to a person is known as Information. So, information is the converted or processed form of data. Program: Program is a set of instructions. The task of processing of data is accomplished … Read more

Write down about the else if ladder

The else if ladder : When a multipath decision is involved then we use else if ladder. A multipath decision is a chain of ifs in which the statement associated with each else is an if. It takes the following general form, This construct is known as the else if ladder. The conditions are evaluated from the top, downwards. This can be shown by … Read more

Write down about the nested if-else statement

Nested if…else statement: When a series of decisions are involved, we may have to use more than one if-else statement in nested form as shown below, Here, if the condition 1 is false then it skipped to statement 3. But if the condition 1 is true, then it tests condition 2. If condition 2 is true then it executes statement 1 and if false then … Read more

Write down about the if-else statement

The if-else statement : The general form of the if….else statement is as follows, if (test expression){ true-block statements; }else{ False-block statements; }statement-x Here, if the test expression is true, then the true-block statements will be executed, otherwise the false-block statements will be executed. In either case, either true block or false block statements will be executed, not both. The … Read more

Write down about the simple if statement

Simple if statement : The general form of a simple if statement is as follows, if (test expression){ statement-block; }statement – x; Here, the statement block may contain a single statement or a group of statements. If the test expression is true then the statement block will be executed; otherwise it will be skipped to the statement – x. This … Read more

Write down about the decision making statement if.

The if statement : The if statement is a powerful decision making statement and is used to control the flow of execution of statements. It is basically a two way decision-statement. It takes the following form,                         if(test expression) This point of program has two paths to follow, one for the true condition and the other for the false condition. That is shown … Read more