Computer Science Book for Class 11 WBCHSE Pdf| C Language|Chapter 1|


 1. C Character Set:

Like other languages, C language has also a character set by which you can create C Program.These are as follows.

Upper Case: A-Z, Lower Case: a-z, Digit: 0-9, Plus: +,Minus: -, Asterisk: *, Ampersand: &,equality: =, left parenthesis: (, Right parenthesis: ),Left brace: {, Right brace: },Left bracket: [, Right Bracket:], etc.

2. C Keywords:

Keywords are reserve word which has developed by C developers to specify the special meanings.

example: auto,break,case,char,int,float,const,volatile,default,do,if,else,extern,for,goto,long,signed,unsigned,static,sizeof,struct,enum,union,while,void,switch.

3. Data Types in C Language:

C Program access different type of data. We can categorize  data as follows. 

Integer Type of data: Integer type of data is defined by int in C Programming. Example: 10,12,456,etc.

Floating Point type of Data: Floating type data is defined as float in C. Example: 10.24,34.456,etc.

Character type of Data: Character type of data is defined as char in C.Example: A-Z,a-z,etc.

Array: Array is a collection of any primary data type or user defined data type. Example: collection of integer,collection of floating number.

Pointer: Pointer holds the address of value of a data type .

User defined data type: You can create any data type using user defined data type.

4. Size of Data Types:

When execute a program a space is allocated into primary memory for any data. Data occupies the space into RAM depending upon type of data. The size of data type are listed below.


5. Modifier in C Language:

Modifier is used to modify the range of existing data type. Range can be modified using three way such as Range Increment or decrement,Range shifting and Range increment/decrement as well as range shifting. Modifiers are described below.

By default all the numbers are signed. We can store positive and negative values into signed number. But when apply unsigned it can store only positive numbers. Long Modifier is used to increment the range and short Modifier is used to decrement the existing data range.

6. Size of Data Types with Modifier:

After applying Modifier, size of the existing data has been changed into new size. The modified size has been described below.


7. What is Identifier ?

In C ,the names of variables,functions,labels and various other user defined objects are called identifiers.

Identifier Rules:

  • Identifiers should start with letter no digit.
  • No space is allowed between two words.
  • You can use special character Underscore(_),Dollar($),percentage(%),etc in  the identifier.
Example: 
123roll--------Wrong Identifier.
roll Number-------Wrong Identifier.
rollNumber-----------Right Identifier.
roll_number----------Right identifier.


8. What is a variable?


8.Tutorial Video:


9. What is casting? What are the type of casting?

Casting is procedure where one data type is changed into another data type.

Types of Casting:
  • Explicit casting
  • Implicit casting.
Implicit casting:
This casting occurs automatically.Implicit casting occurs when smaller data type is converted into bigger data type.
Explicit Casting:
This type of casting occurs when bigger data type is converted into smaller data type.So,data loss happens in the explicit casting. Explicit casting does not occur automatically but it has to cast forcefully.






10. What is Literals ?What are the type of Literals?









Related Videos:
  • Chapter 1: Introduction to C Language.
  • Chapter 2: Data Types,Modifier,Identifier,Variables.
  • Chapter 3: Type casting,Literals or Constant.

Post a Comment

0 Comments