Reserved Keywords
Reserved Keywords of C Programming | |||||
---|---|---|---|---|---|
auto | default | float | register | struct | volatile |
break | do | for | return | switch | while |
case | double | goto | short | typedef | |
char | else | if | signed | union | |
const | enum | int | sizeof | unsigned | |
continue | extern | long | static | void |
Reserved Keywords of C Programming | ||
---|---|---|
auto | float | struct |
break | for | switch |
case | goto | typedef |
char | if | union |
const | int | unsigned |
continue | long | void |
default | register | volatile |
do | return | while |
double | short | |
else | signed | |
enum | sizeof | |
extern | static |
Data Types | int : Integer type के variable को declare करने के लिए 'int' data type का इस्तेमाल किया जाता है | for e.g. int a=0; 'a' is integer variable. char : Character type के variable को declare करने के लिए 'char' data type का इस्तेमाल किया जाता है | for e.g. char ch='Hello'; 'ch' is character variable. double : Double type के variable को declare करने के लिए 'double' data type का इस्तेमाल किया जाता है | इसका उपयोग ज्यादातर नहीं होता , इसके बदले में float data type का इस्तेमाल होता है | for e.g. double num=3.5; 'num' is double variable. float : Floating type के variable को declare करने के लिए 'float' data type का इस्तेमाल किया जाता है | for e.g. float var=1.20; 'var' is floating variable. |
 
Loops | Example | Output |
---|---|---|
Do...While Loop | void main(){ |
0 |
For Loop | void main(){ |
0 |
Decision Control Statements | Example | Output |
---|---|---|
if... else Loop | void main(){ |
i is equal to 10 |
switch.. case.. default | void main(){ | expression is 2 |
Storage Classes | Example | Output |
---|---|---|
auto | void main() |
num : 5 |
extern | extern int num; |
num value comes from General File is 10 |
register | void main() |
These Number is stored in CPU's register |
static | function(){ |
1 |
Jumping Statements | Example | Output |
---|---|---|
goto | void main(){ |
Enter two values |
continue | void main(){ |
value of i is 0 |
struct | struct Student { Student name is Pradeep Rana |
return | Number(){ Addition of a and b is 15 |
typedef | void main(){ Enter value of num1 5 |
union | union Student { Student name is Pradeep Rana |
const | void main(){ num = 1 |
enum | enum Days {Sun, Mon, Tue, Wed, Thu, Fri, Sat }; 0, 1, 2, 3, 4, 5, 6 |
sizeof | void main(){ 4 |