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 :
The benefits of buying summaries with Stuvia:
Guaranteed quality through customer reviews
Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.
Quick and easy check-out
You can quickly pay through credit card for the summaries. There is no membership needed.
Focus on what matters
Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!
Frequently asked questions
What do I get when I buy this document?
You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.
Satisfaction guarantee: how does it work?
Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.
Who am I buying these notes from?
Stuvia is a marketplace, so you are not buying this document from us, but from seller suriyaprakash. Stuvia facilitates payment to the seller.
Will I be stuck with a subscription?
No, you only buy these notes for £5.87. You're not tied to anything after your purchase.