Data is divided into various types in C Language.||
सी भाषा में डेटा को विभिन्न प्रकारों में विभाजित किया गया है।
To Store the Particular type of data in each
Datatype.||
Store प्रत्येक डेटाटाइप में डेटा के विशेष प्रकार को स्टोर करने के लिए।
Larger the value, larger is the space required in memory to store the number.||
बड़ा मान, संख्या संचय (Store)करने के लिए मेमोरी में आवश्यक बड़ा स्थान है।
If you are using a variable whose value varies between 0 and 255 then there is no need to allocate more space in memory for storing this number.||
Using यदि आप एक चर का उपयोग कर रहे हैं जिसका मान 0 और 255 के बीच भिन्न होता है तो इस संख्या को संग्रहीत करने के लिए स्मृति में अधिक स्थान आवंटित करने की आवश्यकता नहीं है।
The data types are created for efficient use of the memory. ||
Memory डेटा प्रकार मेमोरी के कुशल उपयोग के लिए बनाए गए हैं।
Each data item used by a program must have a data type.||
Used प्रोग्राम द्वारा उपयोग किए जाने वाले प्रत्येक डेटा आइटम में डेटा प्रकार होना चाहिए।
Each data type represents a different kind of number.||
प्रत्येक डेटा प्रकार एक अलग प्रकार की संख्या का प्रतिनिधित्व करता है।
You must choose an appropriate type for the kind of number you need in the variable declaration section of the program.||
आपको प्रोग्राम के चर घोषणा अनुभाग में जिस तरह की संख्या की आवश्यकता होती है, उसके लिए एक उपयुक्त प्रकार चुनना होगा
C defines Five data types:
char :: Character
int :: Integer
float :: Floating point (real)
double :: Double floating point
void :: Return type
ऐ डेटाटाइप C Language में पहले से मौजूद हे | इस को Keyword के नाम से जाना जाता हे |
Character Data Type :
The char is a reserved word in C.|
|char सी में एक आरक्षित(Reserve) शब्द है
The basic data types is the character variable.||
Basic मूल डेटा प्रकार वर्ण char है।
The char assigned values between 0 and 255|
|char 0 और 255 के बीच का प्रभार दिया गया मान
A single character can be defined as a character(char) type||
Char एक एकल वर्ण को एक वर्ण (char) प्रकार के रूप में परिभाषित किया जा सकता है
it is stored in only one byte of memory.||
इसे मेमोरी के केवल एक बाइट में संग्रहीत किया जाता है।
Type Bits(Byte) Range
char 8 (1) –127 to 127
Integer Data Type :
Integer Data Type Store numeric values.||पूर्णांक डेटा प्रकार स्टोर संख्यात्मक मान।
It defines a variable that can have a value from -32768 to 32767 on most microcomputer implementations of C.||यह एक वैरिएबल को परिभाषित करता है जिसका मूल्य -32768 से 32767 तक C के अधिकांश माइक्रो कंप्यूटर कार्यान्वयन पर हो सकता है।
Integer Number are Define by the keyword int in c Language.||Integer Number c Language में keyword int द्वारा परिभाषित होते हैं।
C has three classes of integer storage, namely short int, int, long int, in both are signed and unsigned forms.||C में पूर्णांक संग्रहण के तीन वर्ग हैं, अर्थात् small int, int, long int, दोनों में हस्ताक्षरित और अहस्ताक्षरित रूप हैं।
It is stored in only two byte of memory.|| यह मेमोरी के केवल दो बाइट में संग्रहीत होता है।
All of singned integer datatype require 1 bite for sign.||गाए गए पूर्णांक डेटाटाइप के सभी में साइन के लिए 1 Byte की आवश्यकता होती है।
Type Bits(byte) Range
int 16 (2) –32,767 to 32,767
unsigned int 16 (2) 0 to 65,535
Float(Real) Data Type :
- The float is a reserved word in C ||फ्लोट C में एक आरक्षित शब्द है
- Floating point variables store a number which has fractional part. ||फ्लोटिंग पॉइंट वैरिएबल एक संख्या को संचित करते हैं जिसमें आंशिक भाग होता है
- The float type of data, commonly called floating point data.||Point फ्लोट प्रकार का डेटा, जिसे फ़्लोटिंग पॉइंट डेटा कहा जाता है।
- The float data type has a decimal point associated with it and has an allowable range in Turbo C of 3.4×10-38 to 3.4×10+38 with 7 significant digits.||फ्लोट डेटा प्रकार में एक दशमलव बिंदु जुड़ा होता है और इसमें 7 × 7 अंकों के साथ 3.4 × 10-38 से 3.4 × 10 + 38 के टर्बो सी में एक स्वीकार्य सीमा होती है।
- Floating point numbers are stored in 32 bits, with 6 digits of precision.||फ़्लोटिंग पॉइंट संख्याएँ 32 बिट्स में संग्रहित की जाती हैं, जिसमें 6 अंक सटीक होते हैं।
- Ex. 123.123456
- if the floating point number is not sufficient, the double datatype can be used to define the number.||यदि फ्लोटिंग पॉइंट संख्या पर्याप्त नहीं है, तो संख्या को परिभाषित करने के लिए डबल डेटाटाइप का उपयोग किया जा सकता है।
- A double datatype number uses 64 bits giving a precision of 14 digits.||एक डबल डेटाटाइप संख्या 64 बिट्स का उपयोग करती है जो 14 अंकों की सटीकता प्रदान करती है।
- It is stored in only four byte of memory.||यह मेमोरी के केवल चार बाइट में संग्रहीत होता है
Double Data Type :
- The double is a reserved word in C.||डबल सी में एक आरक्षित शब्द है
- The double usually covers a greater range than the float and has more significant digits for more precise calculations.||डबल आमतौर पर फ्लोट की तुलना में अधिक से अधिक रेंज को कवर करता है और अधिक सटीक गणना के लिए अधिक महत्वपूर्ण अंक होते हैं।
- The double covers the range 1.7×10-308 to 1.7×10+308.||डबल में सीमा 1.7 × 10-308 से 1.7 × 10 + 308 शामिल है।
- A float variable requires 4 bytes of storage and a double requires 8 bytes of storage||फ्लोट वैरिएबल में 4 बाइट्स स्टोरेज की जरूरत होती है और डबल में 8 बाइट्स स्टोरेज की जरूरत होती है
Void Data Type :
The Void type has no values.||शून्य प्रकार का कोई मूल्य नहीं है।
This is usually used to specify the type of function.||Used यह आमतौर पर फ़ंक्शन के प्रकार को निर्दिष्ट करने के लिए उपयोग किया जाता है।
Function is void type when it does not return any value.||फ़ंक्शन शून्य प्रकार है जब यह किसी भी मूल्य को वापस नहीं करता है।
Ex. : void main()
: void sum()
इस ही तरह से आप जो follow करेंगे तो में बहोत कुछ हे जो आपको detail में समजा सकूंगा ||
तो दोस्तों अगर आपको हमारा ऐ blog पसंद आया तो Like और Share जरूर करे।
stud21022@gmail.com