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.
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.
9. What is casting? What are the type of casting?
Casting is procedure where one data type is changed into another data type.
- Explicit casting
- Implicit casting.
10. What is Literals ?What are the type of Literals?
- Chapter 1: Introduction to C Language.
- Chapter 2: Data Types,Modifier,Identifier,Variables.
- Chapter 3: Type casting,Literals or Constant.
0 Comments