Data type in c programming.

Data Type In C Programming Hindi.

Data type in c programming.

कैरेक्टर सेट सी प्रोग्रामिंग में पूर्व निर्धारित प्रोग्रामिंग फिक्स्ड ऑपरेशन आरक्षित वर्ड और सिम्बल्स हैं। जिनका उपयोग c प्रोग्रामिंग में किसी विशेष उद्देश्य के लिए किया जाता है। सी प्रोग्रामर द्वारा अपने दैनिक जीवन में और प्रोग्रामिंग डेवलपमेंट स्तर पर कई प्रकार के निश्चित कीवर्ड और कैरेक्टर सेट का उपयोग किया जाता है। ये सिस्टम-परिभाषित वर्ण सेट कुछ प्रोग्रामिंग उद्देश्यों के लिए उपयोग किए जाते हैं।

data type in c

Character set used in c programming – कैरेक्टर सेट में सी प्रोग्रामिंग में, आप ए से जेड तक एक छोटे अक्षर का उपयोग कर सकते हैं, 0 से 9 तक एक संख्या पूर्णांक, एक विशेष कैरेक्टर में एक कीबोर्ड विशेष वर्ण कुंजी, वाइट स्थान, और अन्य वर्णों में प्रोग्रामिंग सेट करें। नीचे आपको कुछ वर्ण प्रकार के सिम्बल्स के उपयोग के बारे में बताया गया है।

The basic c source character set includes the following characters.

  • Letters: a – z, a – z, _
  • Digits: 0 – 9
  • Punctuation: ~! @ # % ^ & * ( ) – + = : ; ” ‘ < > , . ? | / \ { } [ ]
  • Whitespace characters: space, horizontal tab, vertical tab, form feed, newline

Constant – फिक्स्ड कांस्टेंट वेरिएबल का उपयोग कंटेनर के रूप में किया जाता है। लेकिन स्थिरांक सी प्रोग्रामिंग में, स्थिरांक के रूप में घोषित मान को घोषणा के बाद बदला नहीं जा सकता है। निरंतर डेटा प्रकार एक स्थिर होल्ड निश्चित परिभाषित मान, निरंतर वर्ण, पूर्णांक, फ्लोट, डबल या लॉन्ग डबल, डेटा प्रकार हो सकता है। कभी-कभी सी प्रोग्रामिंग में, प्रोग्रामर को एक विशिष्ट अर्थ के साथ एक निश्चित मूल्य का प्रतिनिधित्व करने की आवश्यकता होती है। प्रोग्राम की अपेक्षा से पहले और बाद में स्थिरांक कभी नहीं बदलते हैं। सी प्रोग्रामिंग में किसी भी स्थिरांक को घोषित करते समय उपयोग किए जाने वाले निरंतर कीवर्ड को डेटा प्रकार के साथ इनकी घोषणा को सही से करना चाहिए।

Constant data type in c.

  • Character constant.
  • Integer constant.
  • Float constant.
  • String constant.
  • Octal constant.
  • Hexadecimal constant.

Character constant – कैरेक्टर कॉन्स्टेंट सिंगल कैरेक्टर को / अल्फाबेट को स्टोर करता है, इनवर्टेड कॉमा में संलग्न करता है. मेमोरी सिंगल बाइट्स में अधिकतम कैरेक्टर कॉन्स्टेंट को स्टोर कर सकती है। सी प्रोग्रामिंग में, कैरेक्टर स्थिरांक निश्चित एकल वर्ण या सरणी वर्ण मानों के समूह को संग्रहीत करते हैं। कैरेक्टर कॉन्स्टेंट स्टोर सिंगल कैरेक्टर बाद वाला / अल्फाबेट, उल्टे कॉमा में संलग्न, मेमोरी सिंगल बाइट्स में अधिकतम कैरेक्टर कॉन्स्टेंट स्टोर कर सकते है.

Constant data typeConstant declareMeaning of constant


Char
Const char x=”a”;Declare x character constant, which hold character a value
Const char name[20]=”computer”;Name character constant declare with arrays 20 store elements
Const char store[ ]={‘c’,’o’,’m’,’u’,’t’,’e’,’r’}Fixed arrays with character constant ,store fixed character

Integer constant – पूर्णांक स्थिरांक को पूर्णांक दशमलव संख्याओं के साथ घोषित किया जाता है। पूर्णांक स्थिरांक को धनात्मक या ऋणात्मक चिह्न के साथ घोषित किया जाता है। और पूर्णांक स्थिरांक कंप्यूटर मेमोरी में डेटा स्थान के डिफ़ॉल्ट 2 बाइट्स संग्रहीत करते हैं। पूर्णांक स्थिरांक c प्रोग्रामिंग में निश्चित संख्या, या दशमलव, मान रखते हैं।

Constant data typeConstant declareMeaning of constant

Int
Const int x;Declare integer x constant
Const int a=20;Declare a integer constant ,with 20 integer fixed value
Const int number[5 ];Declare number integer constant, with 5 different number

Float constant – पूर्णांक स्थिरांक के विपरीत, फ्लोट स्थिरांक में, आप दशमलव मान को पूर्णांक के साथ बिंदु में संग्रहीत करते हैं। यह फ्लोटिंग नंबरों को एक दशमलव बिंदु के साथ पूर्णांक प्रारूप में संग्रहीत करता है। सी प्रोग्रामिंग में परिवर्तनीय घोषणा के बाद फ्लोटिंग स्थिरांक स्थिर हो जाता है। डिफ़ॉल्ट रूप से c प्रोग्रामिंग फ्लोट वैल्यू को 4 बाइट्स मेमोरी में स्टोर करती है।

Constant data typeConstant declareMeaning of constant

Float
Const float x;Declare float x constant
Const float a=20;Declare a float constant ,with 20 floating fixed value
Const float number[5 ];Declare number float constant, with 5 different float number

String constant – आप वर्ण के साथ स्ट्रिंग स्थिरांक घोषित कर सकते हैं, वर्ण घोषित ऐरे वेरिएबल का उपयोग कर सकते हैं, अब इसमें वर्ण स्ट्रिंग संग्रहीत करेंगे, यहां स्ट्रिंग स्थिरांक स्ट्रिंग प्रकार का होना चाहिए और इसी तरह यह भी तय किया जाएगा कि किसी भी परिवर्तन की अनुमति नहीं दी जानी चाहिए. आप स्ट्रिंग स्थिरांक में स्ट्रिंग्स और ऐरे के साथ एकल वर्ण वर्णों का भी उपयोग कर सकते हैं।

Constant data typeConstant declareMeaning of constant

String
Const char x;Declare character x constant
Const char text[10]=”abc”;Declare a text constant ,with 10 character fixed value
Const char store[ ]=;{‘a’,’n’,’i’,’m’,’a’,’t’,’i’,’o’,’n’};Declare character string constant, with store different character number

Octal constant – अष्टक स्थिरांक अष्टक संख्या का प्रतिनिधित्व करता है। इसका आधार 8 आठ अंकों का योग है। अन्य अष्टाधारी स्थिरांकों की तरह जो c प्रोग्रामिंग में घोषणा के बाद कभी भी अपना मान नहीं बदलते हैं, एक अष्टाधारी स्थिरांक एक संख्या है। और पूर्णांक डेटा प्रकार के साथ घोषित किया जाना है। याद रखें, पूर्णांक स्थिरांक हमेशा 0 से 9 के बीच होता है। जबकि अष्टक स्थिरांक का उपयोग पूर्णांक स्वरूप 0 से 7 में किया जाता है।

Ex – int a=012;

Int sal=01458;

Hexadecimal constant – हेक्साडेसिमल स्थिरांक में प्रक्रिया डेटा संख्याएं और अक्षर शामिल हैं। हेक्साडेसिमल स्थिरांक का आधार 16 है। हेक्साडेसिमल सी प्रोग्रामिंग में पूर्णांक डेटा प्रकार और 0x से शुरू होने वाली किसी भी संख्या के साथ घोषित करें।

Ex – int p=0x4788;

Int q =0x4558;

Basic step to design any program.

1. Create program in your brain logics.

2. Design program algorithms.

3. Construct program condtion and logics flow chart.

4. Start program construction in development software.

5. product accurate program output.

Basic symbol used in c programming.

Other character set symbol and description.Other character set symbol and description.
, – coma operator. – dot
: – colon; – semi colon
‘ – single quote” – double quote
( – open parenthesis) – close parentheses
[ – left bracket] – right bracket
{ – left curly braces} – right curly braces
() – function[ ] – array subscript
\n – new line\t – tab space
\b – bell\\ – double slash
# – hash (preprocessor sign)\ – slash
* – as trick* – pointer
& – ampersand address operator/* */ – comment
-> – pointer to structure**p – pointer to pointer

Reserved keyword in c programming.

C programming has 32 keywords (reserved words):

Auto

Break

Case

Char

Const

Continue

Default

Do

Double

Else

Enum

Extern

Float

For

Goto

If

Int

Long

Register

Return

Short

Signed

Sizeof

Static

Struct

Switch

Typedef

Union

Unsigned

Void

Volatile

While

Some other c programming keyword added later.

_

Bool

_complex

_imaginary

Inline

Restrict

_alignas

_alignof

_atomic

_generic

_noreturn

_static_assert

_thread_local

Tokens in c programming.

Token – प्रोग्रामिंग संदर्भ में टोकन का एक विशिष्ट अर्थ या कुछ सिस्टम-परिभाषित प्रोग्राम ऑब्जेक्ट होता है। जहां प्रत्येक टोकन को सी प्रोग्रामिंग में एक अद्वितीय उद्देश्य के लिए डिज़ाइन और पूर्व-आरक्षित किया गया है। जहां प्रोग्राम के बुनियादी ढांचे को विकसित करने के लिए टोकन का उपयोग किया जाता है।
TokenExampleMeaning
KeywordVoid, for, int, while, if, elseDeclare all are keyword, reserve for specific meaning in c program
ConstantConst int x=10; const float temp=10.25; const char x=”a”Declare integer, float, and character constant variable value never changes.
Special symbol[] () {} ! # ^ * @Special symbol building program structure
IdentifiersInt a, char c_name[50], float rent;Identifiers are variable, store or hold associate memory elements in storage location
StringChar name [] =”computer”;String are text, paragraph store multiple character in memory
Operators+ – / * % ^Operator perform operand on given program condition
Rate this post

Leave a Comment

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

Scroll to Top