PROGRAMMING IN C
TWO MARKS
UNIT-1
1. Define c:
*C is a structured programming language.
*c was developed in 1970s by Dennis Ritchie at bell telephone labarotries.
2.what are character set?
1.letters
2.digits
3.special characters
4.white space
3.define c tokens:
The smallest individual units are known as c tokens.
4.define constant:
Constants are fixed values that do not change during the execution of the program.
5.what is identifier?
Identifiers are referring to the names of variables, functions and arrays. These are the user -defined names.
6.define string constants:
A string constant is a sequence of character enclosed in double quotes.
Example: “hello”
7.what is variable?
A variable is data name that may be used to store the value.
8.define data type and their types:
C language is rich in its data type. There are four types :
Primary or fundamental data type
Derived data type
User defined data type
Empty data type
9.define void:
Void is an empty data type. It returns nothing. The void type has no value.
, 10.define operators:
An operator is a symbol that is to perform mathematical or logical manipulation. It is used in program to
manipulate data and variables.
11.what is called associativity?
If two operators with the same precedence occur in an expression. The order in which they are executed is
called aasociativity.
12.define type conversion:
The operands are different types in the expression. The lower type is automatically converted to the higher type
before the operation proceeds.
13.define type caste Operators:
The process of such local conversion of variable is known as casting value or type modifier or type caste
operator.
14.define expressions:
The combination of operand and operators form the expression.
The operand may be variable or constants.
UNIT-2
1.define scan f() function:
Scan f () function is used to read the value from the input device.
2.define print f () function:
Print f ()function is used to display data on the monitor.
3.define decision making statement:
These statements are used to execute particular set of instruction for based on certain condition.
Ex:if, if else, nested if, if else if ladder, switch.
4.define looping statement :
Looping statement are used to execute a group of instruction repeatedly at till some condition is satisfied.
Example: while, do while, for loop.
5.define unconditional statement:
This condition is used to transfer the control to other statement without checking any condition.
Example : goto, break.
6.define simple if statement:
It is used to execute some statements for a particular condition.
7.define switch statement :
TWO MARKS
UNIT-1
1. Define c:
*C is a structured programming language.
*c was developed in 1970s by Dennis Ritchie at bell telephone labarotries.
2.what are character set?
1.letters
2.digits
3.special characters
4.white space
3.define c tokens:
The smallest individual units are known as c tokens.
4.define constant:
Constants are fixed values that do not change during the execution of the program.
5.what is identifier?
Identifiers are referring to the names of variables, functions and arrays. These are the user -defined names.
6.define string constants:
A string constant is a sequence of character enclosed in double quotes.
Example: “hello”
7.what is variable?
A variable is data name that may be used to store the value.
8.define data type and their types:
C language is rich in its data type. There are four types :
Primary or fundamental data type
Derived data type
User defined data type
Empty data type
9.define void:
Void is an empty data type. It returns nothing. The void type has no value.
, 10.define operators:
An operator is a symbol that is to perform mathematical or logical manipulation. It is used in program to
manipulate data and variables.
11.what is called associativity?
If two operators with the same precedence occur in an expression. The order in which they are executed is
called aasociativity.
12.define type conversion:
The operands are different types in the expression. The lower type is automatically converted to the higher type
before the operation proceeds.
13.define type caste Operators:
The process of such local conversion of variable is known as casting value or type modifier or type caste
operator.
14.define expressions:
The combination of operand and operators form the expression.
The operand may be variable or constants.
UNIT-2
1.define scan f() function:
Scan f () function is used to read the value from the input device.
2.define print f () function:
Print f ()function is used to display data on the monitor.
3.define decision making statement:
These statements are used to execute particular set of instruction for based on certain condition.
Ex:if, if else, nested if, if else if ladder, switch.
4.define looping statement :
Looping statement are used to execute a group of instruction repeatedly at till some condition is satisfied.
Example: while, do while, for loop.
5.define unconditional statement:
This condition is used to transfer the control to other statement without checking any condition.
Example : goto, break.
6.define simple if statement:
It is used to execute some statements for a particular condition.
7.define switch statement :