Data Types In C

data types in c in hindiDear Students, aaj ke is Lecture me hum seekhenge data types in c ke bare main yani ke c ke data types ke bare me. Or sath hi sath ham different type of data types in c ke bare me bhi padege. or sabse important topic ki c language main kaunsa data types memory me kitna space occupies karta hai. Data types se related ye sare topic ham data types in c ke lecture me he padege.

Lectures Covering Topics

  • What Is Data Types In C In Hindi
  • Definition Of Data Types In Hindi
  • Different Types Of Data Types In C In Hindi
  • Basic Data Type In C In Hindi

Data Types In C In Hindi

Students jab ham koi variable create karte hai. To hame apne compiler ko batana hota hai ki ham kis tarah ka variable create karege. Matlab ki ham compiler ko batayege ki hamara variable kis tarah ki value ko store karega.

Jis tarah ka aapne variable crate kiya hoga. Compiler utni hi memory us variable ko computer system ki memory me se de deta hai. Jaisa ki aap neeche likhe statement me dekh sakte hai.

Char ch;

Upar likha hua statement compiler ko batata hai ki aap ch variable me ek character (a, b, c, d, e) hold karane wale hai. Ab kisi bhi ek character ko store karne ke liye jitney bhi memory ke jaroorat hoti hai. Compiler utni hi memory is ch variable ko allot kara deta hai. Jisme char 1 byte ki memory leta hai.

Yadi kisi bhi programming language me data types na ho to hame apne computer system ki memory bahut hi waste karni padegi. Jis jagah hamara kaam 4 bytes ki memory me ho sakta hai. Hum vha 30 byte ki memory waste kar sakte hai.

Isliye student eak achha programmer bahi hota hai. Jo programming ke saath saath apne program ki space complexity ko bhi bachaye. To aapko jis taype ka data store karna hai usi type ka variable define karna hai. Neeche sabhi data types ki range or maximum memory limit define ke gayi hai.

Definition Of Data Types In C In Hindi

Eak data type kisi variable ki value (yani char, number etc) or us variable par hone wale sabhi operation ko define karta hai. Sabhi data types ka memory me memory storage representation different hota hai.

(A data types defines a domain of allowed values and the operation that can be performed on those value. Storage representation of different data types is different in memory.)

Different Types Of Data Types In C In Hindi

Students c programming language 4 tarah ke data typs ko support karti hai. Jinhe primitive data types bhi kha jata hai.

  • Basic Data Types
  • Derived Data Types
  • Enumeration Data Type
  • Void Data Types

data types in c

Basic Data Types In Hindi:-

Basic data types integer-based or floating-point based dono par depend hai. C language signed or unsigned literals dono ko support karti hai.

basic data types in c

Memory me basic data types ka size 32-64 bits operating system ke according change ho sakta hai. Lekin hum yhan aapko 32 bits operating system ke according bta dete hai.

Data Types Memory Size Range
char 1 byte -128 to 127
signed char 1 byte -128 to 127
unsigned char 1 byte 0 to 255
short 2 byte −32,768 to 32,767
signed short 2 byte −32,768 to 32,767
unsigned short 2 byte 0 to 65,535
int 2 byte −32,768 to 32,767
signed int 2 byte −32,768 to 32,767
unsigned int 2 byte 0 to 65,535
short int 2 byte −32,768 to 32,767
signed short int 2 byte −32,768 to 32,767
unsigned short int 2 byte 0 to 65,535
long int 4 byte -2,147,483,648 to 2,147,483,647
signed long int 4 byte -2,147,483,648 to 2,147,483,647
unsigned long int 4 byte 0 to 4,294,967,295
float 4 byte
double 8 byte
long double 10 byte

Derived Data Types In C In Hindi:-

Derived data types wo data types hote hai jo user define karte hai. Isliye inhe user define data types bhi kahte hai. Yani ki derived data type bhi basic data types se he bane hote hai.

Derived data types in c

Void Data Types In C In Hindi:-

Students void data types ka use ham tab karte hai jab hame value ke bare me pta nahi hota hai. Void data types ko jyadatar function ke sath use kiya jata hai. Or sabse jayada ise hum function ke sath use karte hai.

Neech wo situation likhi hui hai jhan aap void type ka use kar sakte ho.

  • Yadi ham function me koi parameter nahi le rahe hai to ham vha par void data type ka use karege. Void type hame yah btayaega ki ham yah par koi arguments nahi le rahe hai.
  • Jab hamara koi function value return nahi karta hai to ham us function ka return type void define karte hai. example ke liye aap is tarah se apna function define kar sakte hai. void fun();.
  • Jab hame confirm na ho ki pointer variable kis type ke variable ko point karega to ham uska type void define kar sakte hai. Tab ham void pointer se kisi bhi variable ko point kra sakte hai.

Enumeration Data Type In C In Hindi:-

Enumerated data type eak user define data types hota hai. Jiske variable ko ham kuch limit value hi assign kra sakte hai. Wo values programmer duavara enumerated type ko declare karte time par he define ke jati hai. Enumerated data type ka syntax neeche likha hua hai.

enum enumerated-type-name{value1, value2, value3,……….value n};

Related Lecture

Dear Students, main aasha karta hun ki aapko data types in c Ka Lecture padh kar samjh me aa gaya hoga ki data types kya hote hai. Or data types kitne types ke hote hai. Yadi aapako (data types in c ) ke Lecture se related koi bhi problem hai to aap hume comment karke puch skte hai.

Share This Post On

About Author

Thakur Aman Singh

Hey, I am Aman Singh Tomar from Taj City Agra. Through This Blog I want to share my Knowledge with all of you. Read More >>

Leave a Reply

Your email address will not be published. Required fields are marked *