• FUNDAMENTALS
  • COMPUTER PROGRAMMING
  • WEB DESIGNING
  • C PROGRAMMING
  • CPP PROGRAMMING
  • Software Engineering

Tutorial In Hindi

Operators in C in Hindi – सी में ऑपरेटर क्या है? और प्रकार

इस लेख "Operators in C in Hindi" में, जानें कि सी में ऑपरेटर क्या है? ऑपरेटर का उदाहरण और सी Operators के प्रकार को हिंदी में समझें।

Operators in C in Hindi : C ऑपरेटर ऐसे प्रतीक (symbols) हैं जिनका उपयोग किसी चर (variable) या चर के सेट पर कुछ ऑपरेशन या संचालन के सेट को करने के लिए किया जाता है। मूल रूप से, एक ऑपरेटर एक विशेष symbols है जो compiler को विशिष्ट गणितीय या तार्किक संचालन करने के लिए कहता है।

इस लेख में, आप उदाहरण के साथ सीखेंगे की C में Operators क्या है (What is Operators in C in Hindi)? और इसके सभी प्रकार के operators को समझेंगे।

नोट : शुरू करने से पहले, सी भाषा को अच्छी तरह से समझने के लिए नीचे दिए गए वीडियो को देखें, और सी variable और  डेटा प्रकार क्या है को समझें ।

Table of Contents

सी में ऑपरेटर क्या है – Operators in C in Hindi

C प्रोग्रामिंग भाषा में प्रोग्राम की आवश्यकता के अनुसार विभिन्न कार्यों को करने के लिए बहुत सारे बिल्ट-इन ऑपरेटर होते हैं। ऑपरेटर डेटा और वेरिएबल में हेरफेर करने के लिए एक कार्यक्रम में भाग लेते हैं और conditional, mathematical, या logical expressions का एक हिस्सा

सी ऑपरेटर सी में एक विशेषता है जिसमें ऐसे symbol हैं जिनका उपयोग mathematical, bitwise, conditional, relational, logical हेरफेर (manipulations) करने के लिए किया जा सकता है।

दूसरे शब्दों में, सी ऑपरेटर्स वे प्रतीक हैं जो ऑपरेंड (operands) पर काम करते हैं। सी भाषा में ऑपरेटर का उपयोग ऑपरेंड पर विशिष्ट गणितीय या तार्किक गणना करने के लिए किया जाता है और यह एकल मान को कम करता है।

सी ऑपरेटरों का उदाहरण – Example of Operators in C

सी ऑपरेटर और कुछ नहीं बल्कि एक प्रतीक (symbol) है जो एक मूल्य या एक चर (variable) पर काम करता है। उदाहरण के लिए, + और – किसी भी सी प्रोग्राम में जोड़ और घटाव करने वाले ऑपरेटर हैं।

नीचे दिए गए उदाहरण में, हम दो मानों को एक साथ जोड़ने के लिए  +  ऑपरेटर का उपयोग किए हैं:

इसका output कुछ इस तरह दिखेगा:

Operators output

हालांकि  +  ऑपरेटर का उपयोग अक्सर दो मानों को एक साथ जोड़ने के लिए किया जाता है, जैसे कि ऊपर दिए गए उदाहरण में, इसका उपयोग एक चर और एक मान, या एक चर और एक अन्य चर को एक साथ जोड़ने (+) या घटाने (-) के लिए भी किया जा सकता है। कुछ इस तरह:

स्क्रीन पर आउटपुट कुछ इस तरह होगा:

Example of C Operators in Hindi

सी ऑपरेटरों के प्रकार – Types of C Operators in Hindi

C में कई ऑपरेटर हैं जो लगभग सभी प्रकार के ऑपरेशन करते हैं। ये ऑपरेटर वास्तव में उपयोगी हैं और इनका उपयोग हर ऑपरेशन को करने के लिए किया जा सकता है।

सी ऑपरेटरों के प्रकार – Types of C Operators in Hindi

C में कई बिल्ट-इन ऑपरेटर हैं और इन्हें मुख्य रूप से 6 प्रकारों में वर्गीकृत किया जा सकता है:

  • अंकगणितीय ऑपरेटर (Arithmetic Operators) ।
  • संबंधपरक ऑपरेटर (Relational Operators) ।
  • लॉजिकल ऑपरेटर्स (Logical Operators) ।
  • बिटवाइज़ ऑपरेटर (Bitwise Operators) ।
  • असाइनमेंट ऑपरेटर (Assignment Operators) ।
  • अन्य ऑपरेटरों (Other Operators) ।

आइए इन सभी प्रकार के C operators को समझते है –

सी अंकगणितीय ऑपरेटर – C Arithmetic Operators

सी में एक arithmetic operator numerical मानों (onstants और variable) पर mathematical operations जैसे जोड़, गुणा, घटाव, भाग आदि करता है।

उदाहरण के लिए: 10+3 = 13, 15-5 = 10, 5*3 = 15, आदि arithmetic operators के उदाहरण हैं।

आइए सी प्रोग्रामिंग में विभिन्न प्रकार के अंकगणितीय ऑपरेटरों पर चर्चा करें:

ऑपरेटर का अर्थ
+इस ऑपरेटर को जोड़ या यूनरी प्लस कहता है। इसका उपयोग दिए गए दो ऑपरेंड को जोड़ता था।
इसे घटाव या यूनरी माइनस कहा जाता है।
*यह ऑपरेटर गुणन के लिए उपयोग किया जाता है।
/यह ऑपरेटर विभाजन के लिए उपयोग किया जाता है।
%यह modulus ऑपरेटर है। इसका उपयोग पहली संख्या को दूसरी संख्या से विभाजित करके शेषफल को वापस करने के लिए किया जाता है।

सी संबंधपरक ऑपरेटर – C Relational Operators

C में एक रिलेशनल ऑपरेटर दो ऑपरेंड के बीच संबंध (relationship) की जांच करता है। यदि संबंध true है, तो यह 1 लौटाता है; यदि संबंध false है, तो यह मान 0 देता है। संबंधपरक ऑपरेटरों का उपयोग निर्णय लेने (decision making) और लूप (loops) में किया जाता है। कुछ रिलेशन ऑपरेटर हैं (==, !=, <, >, <=, >=)

ऊपर दी गई अभिव्यक्ति, हमने एक समानता ऑपरेटर का उपयोग किया है जिसका अर्थ है कि यह x और y के मूल्य की जांच करता है यदि दोनों मान समान हैं तो यह true वापस आ जाएगा अन्यथा यह false वापसी करेगा।

Relational ऑपरेटरऑपरेटर का नामयह क्या करता हैReturn value
==समानता (Equality) ऑपरेटरजांचता है अगर x == yBoolean
!=असमान (Not equal to)जांचता है अगर x != yBoolean
<से कम (Less than)जांचता है अगर x < yBoolean
>से अधिक (Greater than)जांचता है अगर x > yBoolean
<=से कम या बराबर (Less than or equal to)जांचता है अगर x<=yBoolean
>=इससे बड़ा या इसके बराबर (Greater than or equal to)जांचता है अगर x>=yBoolean

सी लॉजिकल ऑपरेटर्स – Logical Operators in C

C में तार्किक (logical) ऑपरेटरों का उपयोग तब किया जाता है जब हम एक से अधिक शर्तों की जांच या परीक्षण करना और निर्णय लेना चाहते हैं। मूल रूप से, हम दिए गए भावों के किसी भी सेट पर विभिन्न तार्किक संचालन करने के लिए logical ऑपरेटरों का उपयोग करते हैं।

कुछ लॉजिकल ऑपरेटर हैं ( &&, ||, ! )।

ऊपर दिया गया तार्किक व्यंजक तभी true है जब a > b true है और x == 100 true है। यदि उनमें से कोई एक (या दोनों) असत्य है, तो व्यंजक असत्य है।

Logical ऑपरेटरऑपरेटर का नामयह क्या करता हैइसका उपयोग/आउटपुट
&&तार्किक (logical) यदि दोनों साइड ऑपरेंड का मान true है तो true लौटाता है अन्यथा false लौटाता हैBoolean
||तार्किक यदि ऑपरेंड का कोई मान true है या ऑपरेंड के दोनों मान true हैं तो true लौटाता है अन्यथा false लौटाता है।Boolean
!तार्किक यदि consideration condition संतुष्ट नहीं है तो true लौटाता है अन्यथा false लौटाता है।Boolean

सी बिटवाइज़ ऑपरेटर – Bitwise Operators in C

सी भाषा में बिटवाइज़ ऑपरेटर का उपयोग बिट स्तर पर डेटा के हेरफेर के लिए किया जाता है। इन ऑपरेटरों को फ्लोट और डबल datatype के लिए लागू नहीं किया जाता है। बिटवाइज़ ऑपरेटर दो अंकों का अस्तित्व रखते हैं, या तो 0 या 1. बिटवाइज़ ऑपरेटर्स में से कुछ हैं ( &, | , ^, ~ )

नोट : Shift Bitwise ऑपरेटरों का उपयोग बिट्स को दाएं से बाएं left करने के लिए किया जाता है। कुछ shift बिटवाइज़ ऑपरेटर हैं (<<, >>)

हम बिटवाइज़ ऑपरेटरों के लिए निम्नलिखित truth table का उपयोग करते हैं:

ABA & B (Bitwise AND)A | B (Bitwise OR)A ^ B (Bitwise XoR)
11110
01011
10011
00000

उपरोक्त उदाहरण में, हमारे पास दो variable a और b हैं।

a = 5 (In Decimal); b = 6 (In Decimal);

तो, a का बाइनरी प्रतिनिधित्व 0101(5) है और b का बाइनरी प्रतिनिधित्व 0110(6) है।

बिटवाइज़ ऑपरेटरऑपरेटर का नामयह क्या करता हैइसका उपयोग
&बिटवाइज़ ANDबिटवाइज़ AND ऑपरेटर करते हैं AND दोनों ऑपरेंड AND आउटपुट 1 (true) के प्रत्येक संबंधित बिट्स का करते हैं यदि दोनों ऑपरेंड के पास उस स्थिति में 1 है अन्यथा 0 (false)।a & b
|बिटवाइज़ ORबिटवाइज़ OR ऑपरेटर दोनों ऑपरेंड और आउटपुट 0 (false) के प्रत्येक संबंधित बिट्स के OR ऑपरेशन करते हैं यदि दोनों ऑपरेंड के पास उस स्थिति में 0 है अन्यथा 1 (true)।a | b
~बिटवाइज़ complementएक ऑपरेंड पर एक ऑपरेंड पर complement ऑपरेशन करता है और बिटवाइज complement 1 से 0 और 0 से 1 में बदलता है।~a
^बिटवाइज़ exclusive OR1 लौटाता है यदि दो ऑपरेंड के संगत बिट अन्य 0 के विपरीत हैं।a^b
<<shift leftबिट्स की संख्या को बाईं ओर शिफ्ट करता है।a << 1
>>shift rightबिट्स की संख्या को दाईं ओर शिफ्ट करता है।a >> 1

सी असाइनमेंट ऑपरेटर – Assignment Operators

इन ऑपरेटरों का उपयोग एक variable, एक property, एक event या एक indexer तत्व के लिए एक नया मान निर्दिष्ट करने के लिए किया जाता है। निम्नलिखित सी में असाइनमेंट ऑपरेटरों की एक तालिका है। मान लीजिए कि आपके पास दो integer variables A, B हैं और मान 5, 2 हैं तो

उपरोक्त उदाहरण में, हम चर a को b का मान निर्दिष्ट कर रहे हैं।

ऑपरेटर का नामऑपरेटर का नामइसका उपयोग
=assignmentरिएबल b का वेरिएबल a का मान असाइन करता है।a = b
+=plus assigna = a+b (a से b के मान जोड़ता है और इस मान को a को असाइन करता है)a += b
-=minus assigna = a-b (a से b के मानों को घटाता है और इस मान को a को निर्दिष्ट करता है)a -= b
*=times assigna = a*b (a को b से गुणा करता है और a को मान निर्दिष्ट करता है)a *= b
/=div assigna = a/b (a को b से विभाजित करता है और a को मान प्रदान करता है)a /= b
%=Mod assigna = a%b (a को b से विभाजित करता है और शेष का मान a को निर्दिष्ट करता है)a %= b

अन्य ऑपरेटरों (Other Operators)

उपरोक्त ऑपरेटरों के अलावा, सी में कुछ अन्य ऑपरेटर उपलब्ध हैं जिनका उपयोग कुछ विशिष्ट कार्यों को करने के लिए किया जाता है। उनमें से कुछ हैं,

  • Sizeof ऑपरेटर ।
  • Comma ऑपरेटर ।
  • dot (.) और arrow (->) ऑपरेटर ।
  • Cast ऑपरेटर ।
  • &,* ऑपरेटर ।

Free C Programming Course in Hindi

अगर आप सी प्रोग्रामिंग लैंग्वेज को शुरू से स्टेप बाई स्टेप सीखना चाहते हैं तो यहां हमारा फ्री सी लैंग्वेज कोर्स है, “सी कोर्स हिंदी” बटन पर क्लिक करके सीखना शुरू करें।

C Course Hindi

सी लैंग्वेज में हम operations का उपयोग करके variables या ऑपरेंड पर संचालन करते हैं। मूल रूप से, यह गणित से लिया गया है। ऑपरेटर सी कंपाइलर के लिए जाने जाने वाले symbol हैं, जिनका उपयोग डेटा पर संचालन करने के लिए किया जाता है। ऑपरेटर किसी भी प्रोग्रामिंग भाषा की नींव होते हैं।

मुझे उम्मीद है कि यह लेख “Operators in C in Hindi” में, आप सी में ऑपरेटर क्या है? और इसके प्रकार पर ज्ञान प्राप्त कर सकते हैं और सीख सकते हैं कि हम इसे अपने सॉफ्टवेयर विकास परियोजनाओं में कैसे उपयोग कर सकते हैं।

संबंधित लेख लेखक से और अधिक

What is c language in hindi – सी लैंग्वेज क्या है [pdf 2024], history of c language in hindi – c का इतिहास, syntax of c language in hindi (program structure), features of c language in hindi (सी भाषा की विशेषताएं), decision making in c in hindi (if, else, nested, switch).

This is a very useful post about Operators in C in Hindi. Thanks for sharing this on your blog.

कोई जवाब दें जवाब कैंसिल करें

अगली बार टिप्पणी के लिए इस ब्राउज़र में मेरा नाम, ईमेल और वेबसाइट सहेजें

Please enter an answer in digits: eighteen + five =

  • Get in Touch
  • Privacy Policy

eHindiStudy

Computer Notes in Hindi

c operator in hindi & types of operators in hindi

Operators in hindi (‘सी’ भाषा में ऑपरेटर्स क्या है):-.

किसी भी प्रोग्रामिंग भाषा में प्रयोग किये जाने वाले operators वे संकेत होते हैं जो कि कंप्यूटर कम्पाइलर को गणितीय या लॉजिकल संगणनाएं करने के लिए निर्देश देते है.

सी भाषा में भी operator का प्रयोग गणना करने तथा निर्णय लेने के लिए ही किया जाता है. operator का प्रयोग वेरिएबल अथवा संख्याओं के साथ किया जा सकता है.

types of operators in hindi (ऑपरेटर्स के प्रकार):-

‘सी’ प्रोग्रामिंग भाषा में operators के निम्नलिखित प्रकार होते है:-

1:- Arithmetic Operator (अरिथमेटिक ऑपरेटर)

2:- Relational Operator (रिलेशनल ऑपरेटर)

3:- Logical Operator (लॉजिकल)

4:- Bitwise Operator (बिटवाइज)

5: – Assignment Operator (असाइनमेंट)

6: – increment & decrement operators (इन्क्रीमेंट तथा डिक्रिमेंट)

7:- अन्य ऑपरेटर्स

1:- arithmetic operators (अंकगणितीय ऑपरेटर):-

arithmetic ऑपरेटर्स का प्रयोग आंकिक गणनाओं के लिए किया जाता है. ‘सी’ में arithmetic ऑपरेटर + का प्रयोग जोड़ (addition) के लिए, – का प्रयोग घटाने (substraction) के लिए, * का प्रयोग गुणा (multiply) के लिए, / का प्रयोग भाग (dividation) तथा % का प्रयोग भाग-अवशेष (modulo division) के लिए किया जाता है.

arithmetic operator

2:- Relational operators (रिलेशनल ऑपरेटर):-

जब दो संख्याओं में असमानता अथवा समानता प्रकट करते हुए लिखना होता है तब हम रिलेशनल ऑपरेटर का प्रयोग करते है. ‘सी’ भाषा में प्रयोग होने वाले रिलेशनल ऑपरेटर निम्नवत हैं:-

relational operator

3:- logical operators (लॉजिकल ऑपरेटर्स):-

‘सी’ में लॉजिकल ऑपरेटर का प्रयोग variables में लॉजिकल ऑपरेशन करने के लिए किया जाता है.

operators
&& (logical AND)(a>6)&&(b<6)

यह true दिखाता है यदि दोनों कंडीशन सत्य(true) हो तो.

|| (logical OR)(a>=12)||(b>=12)

यह true दिखाता है यदि एक कंडीशन सत्य हो तो.

! (logical NOT)!((a>6)&&(b<6))

यह true return करता है जब conditions satisfy नहीं होती है तो

 4:- assignment operators (असाइनमेंट ऑपरेटर):-

जब किसी वेरिएबल को मान प्रदान किया जाता है, तो असाइनमेंट operator का प्रयोग किया जाता है. ‘सी’ भाषा में यह ऑपरेटर ( = ) है.

इस ऑपरेटर के साथ अंकगणितीय ऑपरेटर (+, -, *,/ तथा, %) का प्रयोग करके बहुत छोटे स्टेटमेंट द्वारा वेरिएबल को मान प्रदान किया जा सकता है. जैसे, यदि हमें लिखना है-

Int x = x + 5;

इस स्टेटमेंट को हम इस प्रकार भी लिख सकते हैं.

int x += 5;

5:- bitwise operators (बिटवाइज ऑपरेटर):-

bit लेवल के ऑपरेशन करने के लिए c लैंग्वेज में बिटवाइज ऑपरेटर का प्रयोग किया जाता है.

bitwise operators

6:- increment & decrement operators (इन्क्रीमेंट तथा डिक्रिमेंट ऑपरेटर):-

ये ऑपरेटर्स किसी एक operand पर ही कार्य करते हैं. इनको unary operator भी कहते है.

जब हमें किसी वेरिएबल में से एक घटाना अथवा एक जोड़ना हो तो हम इन्क्रीमेंट अथवा डिक्रिमेंट ऑपरेटर का प्रयोग करते हैं.

‘सी’ में यह ऑपरेटर ‘–’ और ‘++’ है. इस operator में यह ध्यान रखना चाहिए कि ऑपरेटर वेरिएबल के दायीं ओर प्रयोग करना है अथवा बायीं ओर क्योंकि दिशा बदलने से इनका स्वभाव बदल जाएगा.

यदि वेरिएबल के बायीं और इस ऑपरेटर का प्रयोग किया जाता है, तो यह पहले वेरिएबल में एक जोड़ता अथवा घटाता है. यदि ऑपरेटर वेरिएबल के दाई ओर प्रयोग किया जाता है, तो यह ऑपरेटर बाद में घटाता अथवा जोड़ता है इसे इस प्रकार समझा जा सकता है मान लेते हैं कि a = 4 और b = 0 है तो-

इस स्टेटमेंट में पहले a में एक जुड़ने के बाद वह मान b को भी प्रदान हो जाएगा. अब a और b दोनों वेरिएबल्स का मान 5 हो जाएगा.

यदि इस स्टेटमेंट को इस प्रकार लिखते हैं:-

इस स्टेटमेंट में पहले b को वेरिएबल a का मान प्राप्त होगा और उसके बाद a में एक जुड़ेगा. इस प्रकार b का मान 4 और a का मान 5 हो जाएगा.

7:- अन्य operators:-

सी भाषा में & ऑपरेटर का प्रयोग किसी भी वेरिएबल के एड्रेस को एक्सेस करने के लिए प्रयुक्त होते है.

sizeof ऑपरेटर का प्रयोग वेरिएबल के साइज़ को एक्सेस करने के लिए किया जाता है.

निवेदन:- आपको यह पोस्ट कैसी लगी हमें comment के द्वारा बताइए तथा इसे अपने दोस्तों के साथ अवश्य share करें. धन्यवाद.

22 thoughts on “c operator in hindi & types of operators in hindi”

bahut badiya ye mujhe achha laga aage bhi isi tarah naye naye notes daalte rahiye aur hamen iska bahut laabh ho rha hai dhnywaad…

advantage-and-disadvantage-of-array-in-hindi

dhnywaad balram soni

Thanks for putting these Keep putting

Bahut bahut badhiya sir isse hme bahut samajh Me aya Thanks sir

C language not complite on your website

Very nice sir thank you sir

Really Brother You are good man because all peoples and Student Get the profit and advantage for the your notes and thanks bhai aage bhi new notes post karte rahiye Allah Hafiz

thnx rashid ..i really appreciate this..

बहुत ही अच्छी धन्यवाद मेरे बड़े भाई

Very Nice….. Thank You So Much… Brother…

Nice Jo ye site bnaya hai meri tarph se thanks

Very very thanks bhai mere

Thik h sir ji itne m hi hmari kasti paar ho jayeghi ☺️

Mere ko msc cs ka chahiye bhai please help me

Thank you so much sir Your posts are awesome and easy to explain. Thank you sir.

waah! kya baat h bhaisaab esi post karte raho bhagwan aapka bhla karega. aapse nivedan hain ki nayi nayi jankari update karte rehna ji.

Thanks is website ki madad se mujhe c bhasha mein operation samajh a gaye

Leave a Comment Cancel reply

  • Skip to primary navigation
  • Skip to main content

Guptatreepoint logo

GuptaTreePoint

The World Best Hindi Blog

Operators in C in Hindi – C programming में operators क्या होते हैं?

April 20, 2019 by SUMIT KUMAR GUPTA 5 Comments

Operators in C

Operators in C in Hindi – C programming में operators क्या होते हैं? C programming के पिछले tutorial series में हमने Format specifier के बारे में जाना था| आज के इस tutorial series में हम operators के बारे में जानेंगे| C programming में operators क्या होता है – Explain operators in C programming.

किसी भी programming language में operators सबसे महत्वपूर्ण parts होते हैं| इसके बिना हम कोई भी program नहीं लिख सकते| जिस प्रकार घर बनाने के लिए ईंट की जरुरत पड़ती है उसी प्रकार program बनाने के लिए हमें operators की आवश्यकता पड़ती है|

Operators in C – C programming में Operators क्या होता है?

Operator एक symbol होता है जो compiler को किसी भी mathematical और logical operation को perform करने के लिए कहता है| C programming में ढेर सारे built-in operators मौजूद हैं|

वैसे symbols जो किसी भी प्रकार के mathematical और logical operation perform करने के लिए इस्तेमाल होते हैं| C programming में उन्हें Operators कहा जाता है| Programming में operators का इस्तेमाल Data और variable को manipulate करने के लिए किया जाता है|

Operators एक या एक से अधिक variable, constants या operands के साथ मिलकर काम करते हैं| Variable , constant , operands, function और operators इन सभी एक को एक साथ मिला देने से एक expression बनता है|

Operands और Operators के combination को Expression कहा जाता है| Operands variables ही होते हैं जो की Operators के साथ मिलकर कुछ operation perform करते हैं| चलिए Expression को example से समझते हैं|

मान लीजिये एक expression “ A + B – C * 6 + 3 ” दिया हुआ है| इसमें +, -, * ये सभी operators हैं जबकि A, B, C ये सभी variables हैं जिन्हें operands भी कहा जाता है| और 6 और 3 ये दोनों constant हैं जिनका value change नहीं होता है| और जब Variables, Operators, constant, function ये सभी को मिला दिया जाता है तो expression तैयार होता है|

Types of operators in C – C programming में operators के प्रकार

जैसा की आपने ऊपर में पढ़ा की C programming में ढेर सारे built-in operators मौजूद होते हैं जिन्हें अलग अलग types में बाँट दिया गया है| जो की इस प्रकार है:

Arithmetic Operators

Assignment operators.

  • Relational Operators

Logical Operators

Conditional operators (ternary operators).

  • Bitwise Operators
  • Increment / Decrement Operators
  • Special Operators

चलिए अब हम सभी operators के बारे में एक एक करके details में जानते हैं:

Arithmetic operators सबसे basic operators होते हैं| इस operators का इस्तेमाल mathematical operations को perform करने के लिए होता है जैसे की Addition (जोड़), Subtraction (घटाव), Multiplication (गुणा), Division (विभाजन / भाग), Modulus division (मापांक विभाजन).

निचे दिया गये table में सारे Arithmetic operators के list दिए गये हैं और साथ ही साथ उनके description भी दिए गए हैं|

OperatorDescriptionExample
+This operator is used for add two operandsA + B = 5 + 3 = 8
-This operator is used for subtract two operandsA - B = 5 - 3 = 2
*This operator is used for multiply two operandsA * B = 5 * 3 = 15
/This operator is used for divide two operandsA / B = 6 / 3 = 2
%This operator is used for modulus division of two operandsA % B = 5 % 3 = 2

Assignment operator का इस्तेमाल किसी variable में value को assign करने के लिए किया जाता है| इस operators के list में कुछ operators आते हैं जिनका list निचे table में दिया गया है|

OperatorsDescriptionExample
=Simple Assignment Operator. इस operator का इस्तेमाल variable में value को assign या store करने के लिए होता है|A = 5, C = A+B
+=Add AND Assignment Operator. यह operator right operand को left operand के value के साथ add करता है और उसके बाद उस value को left operand में assign करता है यानि की left operand में store करता है|C += A यह C = C + A के बराबर है|
-=Subtract AND Assignment Operator. यह operator right operand को left operand से subtract करता है और फिर उसका value left operand में assign करता है|C -= A यह C = C - A के बराबर है|
*=Multiply AND Assignment Operator. यह operator left operand को right operand के साथ multiply करता है और फिर उसका रिजल्ट left operand में store करता है|C *= A यह C = C * A के बराबर है|
/=Divide AND Assignment Operator. यह operator left operand को right operand से divide करता है और फिर उसका रिजल्ट left operand में store करता है|C /= A यह C = C / A के बराबर है|
%=Modulus AND Assignment Operator. यह दो operands के modulus के रिजल्ट को left operand में store करता है|C %= A यह C = C % A के बराबर है|

Relational Operator

Relational Operator का इस्तेमाल दो operands के value को compare करने के लिए किया जाता है इसलिए इसे Comparison operator भी कहा जाता है| निचे दिए गए table में Relational operator के list दिए गये हैं|

OperatorDescription
==इस operator को equal to operator कहा जाता है| इस operator का इस्तेमाल दो value को equal check करने के लिए किया जाता है| अगर दोनों value equal होता है तो यह true return करता है|
!=इस operator को Not equal to operator कहा जाता है| इसका इस्तेमाल दो operands को equal नहीं होने के लिए check किया जाता है| मतलब की इस operator का इस्तेमाल दो operands के value को check करने के लिए किया जाता है अगर दोनों operands का value equal नहीं होता है तो यह true return करता है|
>इस operator को Greater than operator कहा जाता है| इसका इस्तेमाल First operand के value को second operand के value से greater check करने के लिए किया जाता है| अगर First operand का value second operand के value से बड़ा होता है तो यह true return करता है जैसे (5 > 2) return true
>=इस operator को Greater than equal to operator कहा जाता है| इसका इस्तेमाल First operand के value को second operand के value से greater और equal check करने के लिए किया जाता है| अगर First operand का value second operand के value से बड़ा होता है या बराबर होता है तो यह true return करता है जैसे (5 >= 5) return true

Logical Operators का इस्तेमाल दो expression और condition को combine करने के लिए किया जाता है| इस operators का इस्तेमाल logical operation को perform करने के लिए किया जाता है| चलिए example से समझते हैं|

जैसे मान लीजिये एक जॉब के लिए vacancy निकली हुयी है और उस जॉब के लिए ITI और Diploma के students को select किया जाना है मतलब की उस जॉब को करने के लिए या तो आपके पास ITI course का certificate होना चाहिए या फिर Diploma course का certificate होना चाहिए| तो अब जिसके पास ITI qualification होगा वो भी उस जॉब के लिए apply कर सकता है और जो लोग Diploma किये होंगे वो भी उस जॉब के लिए apply कर सकतें है| तो यहाँ पर या (OR) logic perform हो रहा है मतलब की दोनों में से कोई एक हो तो आप जॉब कर सकते हैं| इसी को logical operation कहा जाता है जहाँ पर logic के द्वारा काम होता हो|

Logical operators के list कुछ इस प्रकार हैं जो की निचे के table में दिखाए गये हैं|

OperatorsDescriptionExample
&&इस operator को Logical AND operator कहा जाता है| इस operator का इस्तेमाल दो expression के output को check करने के लिए किया जाता है| इसमें अगर दोनों expression का output true होगा तभी यह true return करेगा अन्यथा False return करेगा| जैसे A के पास value 5 store है और B के पास value 3 store है|((A * B) == 15) && ((A + B) == 8)
Return true
||इस operator को Logical OR operator कहा जाता है| इस operator का इस्तेमाल दो expression के output को check करने के लिए किया जाता है| इसमें अगर दोनों में से कोई एक expression का output true होगा तो यह true return करेगा अन्यथा False return करेगा| जैसे A के पास value 5 store है और B के पास value 3 store है|((A * B) == 15) || ((A + B) == 7)
Return true
!इस operator को Logical NOT operator कहा जाता है| इस operator का इस्तेमाल किसी भी Logical state को reverse करने के लिए किया जाता है| अगर कोई condition true होता है तो Logical NOT operator उसको false बना देता है| जैसे A के पास value 5 store है और B के पास value 3 store है|!((A * B) == 15) && ((A + B) == 8)
return false

Conditional operators का इस्तेमाल condition को check करने के लिए किया जाता है| इस operator के पास केवल दो ही option होते हैं TRUE और FALSE . अगर दिया गया condition satisfy करता है तो TRUE return होगा अन्यथा FALSE return होगा|

इस operator को दो नामों से जाना जाता है|

  • Ternary Operator
  • ? : operator

यह वास्तव में if condition ही होता है लेकिन इसको थोडा modify करके एक short form बनाया गया है जो की केवल दो ही option provide कर सकता है| TRUE और FALSE

Syntax of conditional operators

Condition ? True Expression : False Expression;

Explanation :

  • Question mark “ ? “ if part को represent करता है|
  • condition part हमें true या false दोनों में से कोई एक प्रकार का value प्रदान करती है|
  • अगर condition part true value देता है तो True expression execute होगा| यानि की “:” के left side वाला expression execute होगा|
  • अगर condition part false value देता है तो False expression execute होगा| यानि की “:” के right side वाला expression execute होगा|

Bitwise Operator

Bitwise operator का इस्तेमाल BIT level के data को manipulate करने के लिए किया जाता है| इस operator का इस्तेमाल right से left और left से right bit shifting के लिए किया जाता है| Bitwise operator float और double data type पर apply नहीं होता है|

Computer केवल 0 और 1 पर काम करता है| Bit का full फॉर्म Binary digit होता है जो की 0 और 1 होता है| Bitwise operator का calculation 0 और 1 पर calculate होता है| जब भी हम decimal number को Bitwise operator के द्वारा manipulate करते हैं तो processor सबसे पहले उसको 0 और 1 के फॉर्म में convert करता है और उसके बाद calculate करता है|

OperatorDescription
&Bitwise AND
|Bitwise OR
^Bitwise exclusive OR
>>Right Shift

Truth table of Bitwise operator &, |, ^

aba & ba | ba ^ b
00000
01011
10011
11110

Increment / Decrement Operator

Increment / Decrement operator का इस्तेमाल variable के value को एक बार increase और Decrease करने के लिए किया जाता है| जैसे यदि पहले से variable में 5 value store है तो increment operator के द्वारा इसका value 6 हो जायेगा और decrement operator के द्वारा इसका value 4 हो जायेगा|

Increment / decrement operator दो प्रकार के होते हैं|

  • Pre increment / decrement
  • Post increment / decrement

Pre increment / decrement operator

Pre increment / decrement operator में सबसे पहले value increase और decrease होता है उसके बाद आगे का calculation perform होता है|

Syntax of pre increment / decrement operator

++ (variable name), – – (variable name)

Post increment / decrement operator

Post increment / decrement operator में सबसे पहले calculation perform हो जाता है उसके बाद value change होता है| Post का मतलब होता है बाद में| इसमें कैलकुलेशन perform होने के बाद में value increase और decrease होता है|

Syntax of post increment / decrement operator

(variable name) ++, (variable name) – –

Special Operator

Special operator का इस्तेमाल special work को perform करने के लिए किया जाता है| C programming में ढेर सारे special operator है जिनके list यहाँ दिए गये हैं|

OperatorDescriptionExample
sizeof()यह operator किसी भी variable का size उसके data type के अनुसार return करता है|जैसे a एक integer variable है तो यह 4 या 2 return करेगा| अलग अलग operating system के अनुसार
&यह operator variable के address को return करता है|&a; यह a के address को return करेगा|
*Pointer variable को denote करने के लिए इस्तेमाल किया जाता है|*a
  • Constant in C
  • Data Type in C
  • Code block कैसे install करें?

Conclusion and Final Words

इस tutorial में हमने Operators in C के बारे में जाना| इस tutorial में कुछ ऐसे operators हैं जिन्हें केवल इस tutorial के द्वारा समझना बहुत ही मुश्किल है| इसलिए हम Bitwise operator, Logical Operator, Assignment operator, Special operator और Increment / Decrement operator के बारे में अलग अलग tutorial आपके लिए लेकर आयेंगे| जो की आपको अगले tutorial में पढने को मिलेगा|

External References

Tutorialspoint

About Author

' src=

Reader Interactions

Logical Operators in C – C programming में Logical operators क्या होता है?

Logical Operators in C – C programming में Logical operators क्या होता है?

Relational Operators in C in Hindi – C programming में Relational operators

Relational Operators in C in Hindi – C programming में Relational operators

Assignment Operator in C – C programming में Assignment operator

Assignment Operator in C – C programming में Assignment operator

' src=

December 7, 2020 at 1:38 PM

its very good explanation

' src=

May 24, 2021 at 12:03 AM

Your language is very easy to understand every topic. My doubt is clearl from your notes. Thank you.

' src=

October 1, 2020 at 9:38 AM

बहुत ही बढ़िया तरीके से समझाया गया है। मैं अब इसे नियमित रूप से पढ़ने का प्रयास करूंगा। धन्यवाद इस महत्वपूर्ण लेख के लिए। ढेर सारी शुभकामनाएं।

' src=

November 24, 2019 at 5:21 AM

Apke c operators mujhe bahut ache lage

' src=

October 9, 2019 at 8:55 AM

Really so nice explanation..i am a begginner and i faced many problems in c programming but when i used to read those articles all the doubtes get cleared and end of the day i became a champion..really a great thanks from my heart..great job

Leave a Reply Cancel reply

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

Save my name, email, and website in this browser for the next time I comment.

This site uses Akismet to reduce spam. Learn how your comment data is processed .

Operators in C Programming in Hindi

इस tutorial में हम C Programming Operators के बारे में बात करेंगे लेकिन उससे पहले हम Expressions और Operands को समझेंगे क्योंकि ये दोनों terms इस tutorial में बहुत बार use होंगी.

Expressions in C Programming in Hindi

C Programming में expression variables, constants और operators का combination होता है जिसे c language के syntax को follow करके लिखा जाता है.

सभी C language expression को evaluate करके उसके result value को किसी variable में assign किया जाता है. मैंने नीचे expression के examples दिए हैं.

Operands in C Programming in Hindi

Operators और Operands दोनों एक जैसे words लगते हैं इसलिए कुछ programmer को लगता है की ये दोनों एक ही term है लेकिन real में ऐसा नहीं है.

अपने program में किसी भी operation को process करने के लिए operator के साथ जो values, variables या constants use होते है उन्हें हम operands कहते हैं. आइये नीचे दी गयी expression से समझते हैं.

ऊपर दी गयी expression में c , a और b operands हैं इनके अलावा = और + operators हैं. 

What are Operators in C Programming in Hindi?

Operators के बिना कोई भी programming language अधूरी है क्योंकि शायद ही ऐसा कोई computer program होता होगा जिसमें operators का use नहीं होता हो.

C programming में operators special symbols होते हैं जिनका meaning और use पहले से fix होता है. Operators का use हम अपने C programs में specific mathematical or logical operations (task) को perform करने के लिए करते हैं.

C Programming Language में भी आपको बहुत types के operators मिल जाते हैं जिसने से आप अलग-अलग काम कर सकते हो.

Types of Operators

Arithmetic Operators

Assignment operators, relational operators, logical operators.

  • Conditional Operators or Ternary Operators

Increment and Decrement Operators

  • Bitwise Operators

Operators क्या होते हैं ये तो आप समझ ही गये और अब operators types को एक-एक करके details में समझेंगे.

Arithmetic Operators से तो आप पहले से ही familiar है क्योंकि बचपन से ही हम addition (+), subtraction (-), multiplication (*), division (/) and modulus (%) करते आये हैं.

नीचे दी गयी table देखकर ही आपको arithmetic operators की basic information मिल जाएगी लेकिन मैं आपको suggest करूँगा की detailed जानकारी के लिए आप नीचे दिए गये link पर क्लिक कर tutorial को अच्छे से जरूर पढ़ें.

Read: Arithmetic Operators in C Programming in Hindi

Arithmetic Operators
Operator Name Description
+ Addition Operands को जोड़ने के लिए
Subtraction Operands को घटाने के लिए
* Multiplication Operands में गुणा करने के लिए
/ Divide Operands में भाग देने के लिए
% Modulus Operands में भाग देकर शेषफल निकालने के लिए

जैसा की हमने ऊपर पढ़ा की arithmetic operators का use mathematical operations के लिए किया जाता है 

Arithmetic operators की help से mathematical expression को evaluate (solve) करके उसके result को किसी variable में assign करने के लिए assignment operators का use किया जाता है.

Assignment operator ( = ) right side वाली value, variable, constant या expression के result value को left side वाले variable में assign (copy) कर देता है.

नीचे दी गयी table और example देखकर ही आपको assignment operators की basic information मिल जाएगी लेकिन मैं आपको suggest करूँगा की detailed जानकारी के लिए आप नीचे दिए गये link पर क्लिक कर tutorial को अच्छे से जरूर पढ़ें.

Read: Assignment Operators in C Programming in Hindi

Assignment Operators
Operator Name Description
= Simple Assignment Right side values या expression को solve करके left side के variable में value assign करने के लिए
+= Addition Assignment Left और Right side values (variable) को जोड़कर left side के variable में assign करने के लिए
-= Subtraction Assignment Left और Right side values (variable) को घटाकर left side के variable में assign करने के लिए
*= Multiplication Assignment Left और Right side values (variable) को गुणा करके left side के variable में assign करने के लिए
/= Division Assignment Left और Right side values (variable) को भाग देकर left side के variable में assign करने के लिए
%= Modulo Assignment Left और Right side values (variable) को भाग देकर शेषफल left side के variable में assign करने के लिए

Relational operators का use 2 values की relationship को compare करने के किया जाता है. अगर relationship गलत (false) है तो ये operators 0 return करते हैं और सही (true) होने पर non-zero integer number return करते हैं.

नीचे दी गयी table और example देखकर ही आपको relational operators की basic information मिल जाएगी लेकिन मैं आपको suggest करूँगा की detailed जानकारी के लिए आप नीचे दिए गये link पर क्लिक कर tutorial को अच्छे से जरूर पढ़ें.

Read: Relational Operators in C Programming in Hindi

Relational Operators
Operator Name Description
== Equal to जब दोनों operands की values बराबर होती है तब True return होगा.
!= Not Equal to जब दोनों operands की values अलग-अलग होती है तब True return होगा.
जब left operand की value right operand की value से कम होती है तब True return होगा.
> Greater than जब left operand की value right operand की value से ज्यादा होती है तब True return होगा.
जब left operand की value right operand की value से कम या बराबर होती है तब True return होगा.
>= Greater than or equal to जब left operand की value right operand की value से ज्यादा या बराबर होती है तब True return होगा.

जैसा की आपने ऊपर पढ़ा की relational operators का use conditions define करने के लिए किया जाता है.

कभी-कभी हमें अपने programs में एक से अधिक conditions को एक साथ define करना होता जो की एक-दूसरे से relate होती है और इसके लिए हम logical operators का use करते हैं.

Logical Operators सभी conditions के result values (true, false) को examine करने के बाद false यानी 0 और true यानी को non-zero integer number return करता है.

नीचे दी गयी table और example देखकर ही आपको logical operators की basic information मिल जाएगी लेकिन मैं आपको suggest करूँगा की detailed जानकारी के लिए आप नीचे दिए गये link पर क्लिक कर tutorial को अच्छे से जरूर पढ़ें.

Read: Logical Operators in C Programming in Hindi

Logical Operators
Operator Name Description
&& AND जब सभी conditions true होंगी तब True return होगा.
|| OR जब सभी conditions में से अगर एक भी condition true होगी तब True return होगा.
! NOT ये condition के result को reverse कर देता है यानी true को false और false को true.

Conditional Operator

Conditional operator का use हम if-else statement की तरह ही decision making में करते हैं. आप ऐसा भी कह सकते हैं की ये if-else की short form है.  

Conditional operator (ternary operator) में two symbols ( ? ) और ( : ) का use होता है. 

Question mark symbol ( ? ) से पहले condition आती है और उसके बाद true expression (statement) और Colon mark ( : ) के बाद false expression आता है.

C Programs examples के साथ conditional operator की detailed जानकारी के लिए आप नीचे दिए गये link पर क्लिक कर tutorial को अच्छे से जरूर पढ़ें.

Read: Conditional Operator in C Programming in Hindi

Increment ( ++ )  और Decrement ( — ) operators unary operator हैं यानी ये सिर्फ एक single variable के साथ ही use होते हैं.

Increment operator की help से variable की value में 1 number का increment हो जाता है और decrement operator की help से variable की value में 1 number का decrement हो जाता है.

x = x + 1 को आप ऐसे भी लिख सकते हैं ++x

x = x – 1 को आप ऐसे भी लिख सकते हैं –x

C Programs examples के साथ increment and decrement operators की detailed जानकारी के लिए आप नीचे दिए गये link पर क्लिक कर tutorial को अच्छे से जरूर पढ़ें.

Read: Increment and Decrement Operators in C Programming in Hindi

What’s Next:  इस tutorial में हमने C Operators के बारे में पढ़ा. Next tutorial में हम C programming में  Operators Precedence and Associativity  का use करना सीखेंगे.

12th notes in hindi

operators in c language in hindi , ऑपरेटर्स इन c कंप्यूटर भाषा में हिंदी में , ऑपरेटर in c लैंग्वेज

' src=

Operator

( < )

Look like javaScript is not enable in you browser. You have to enable javaScript for better user experience. You can enable javascript setting > site setting > javaScript

  • Python Statistics
  • Python NumPy

C Operators In Hindi

❮❮ Previous Next ❯❯

If tutorials available on this website are helpful for you, please whitelist this website in your ad blocker😭 or Donate to help us ❤️ pay for the web hosting to keep the website running.

Operator एक symbol होते हैं , जो process / operation represent करते हैं करते हैं , या हम कह सकते हैं की Operators को कोई process / या operation को perform करने के लिए use करते हैं। For Example -

ऊपर दिए गए example में आप देखा सकते हैं कि + (plus sign) Operator define की गयी दो values को add रहा है।

C Operator

C Operators Types

इसी तरह से C हमें different - different Operators provide कराती है different - different action perform करने के लिए। C में normally use होने वाले Operators कुछ इस प्रकार हैं -

  • Arithmetic Operators
  • Assignment Operators
  • Comparison / Relational Operators
  • Logical Operators
  • Increment / Decrement Operator

C Arithmetic Operators

Arithmetic Operators simple calculation में use होने wale Operators होते हैं जैसे Addition , Subtraction etc.

OperatorNameExampleExplanation
+Additionx+y
( + ) plus operator uses to add two or more numbers / values
-Subtraction

x-y

 ( -  ) minus  operator uses to substract one  numbers / values from another numbers / values or finds the difference 
/Divisionx / yquotient of x and y with decimal point.
*multiplicationx * yproduct of x and y
%Modulusx % yremainder of operands

C Assignment Operators

Assignment Operator को equals to = से represent करते हैं , जो कि value को किसी variable में assign करने के लिए use किया जाता है। हालाँकि इसे Arithmetic Operators के साथ भी use करते हैं। नीचे दिए गए Example में आप देख सकते हैं।

OperatorNameExampleExplanation
=Assignx = yvalue of y assigned to x
+=Addition then Assign

x += y

First add and assign it to x. (It is same as x = x+y )
- =Subtract then Assign

x -= y

get the difference and assign it to x. (It is same as x = x-y )
/ =Divide then assign quotientx /= yquotient of x and y then assign it to x . (It is same as x = x/y )
* =Multiplication then assign the productx * =yproduct of x and y then assign it to x. (It is same as x = x*y )
% =Divide then assign remainder
x %= yremainder of operands then assign it to x. (It is same as x = x+%y )

C Comparison Operators

Comparison Operators दी हुई दो values को compare करके value return करते हैं according to condition . C में Comparison Operators को कुछ इस तरह से use कर सकते हैं।

OperatorNameExampleExplanation
==Equalx = = ychecks if x is equal to y.
!=Not equalx !=ychecks if x is not equal to y.
<Less thanx < ychecks if x is less than y.
>Greater thanx > ychecks if x is greater than y.
<=Less than or equalx <= ychecks either x is less than or equal to y.
>=Greater than or equalx >= ychecks either x is greater than or equal to y.

C Incrementing / Decrementing Operators

Incrementing / Decrementing Operators को किसी variable को 1 से increase या decrease करने के लिए use किया जाता है। हालाँकि इसमें Addition और Subtraction operation ही होते हैं , इसलिए इसमें ( ++ ) या ( -- ) sign ही use होते हैं। नीचे table में आप देख सकते हैं किसा तरह से इन्हे use करते हैं और क्या Output generate हैं।

OperatorNameExplanation
++aPre Incrementfirst increment by 1 then return the value of a
a++post Incrementfirst return the value of a then increment by 1.
--aPre Decrementfirst decrement by 1 then return the value of a
a--Post Decrementfirst return the value of a then decrement by 1.

C Logical Operators

Logical Operators , एक या एक से अधिक expression के according Boolean value return करते हैं। जैसे -

OperatorNameExampleExplanation
&&Andx && ysame as and,returns True if Both operands (x and y) are true;
!Not!xReturns True if x is not true;
||Orx || ysame as or , returns True if either x or y is true;

Related Topics :

Rahul Kumar

Rahul Kumar

Hi ! I'm Rahul Kumar Rajput founder of learnhindituts.com. I'm a software developer having more than 4 years of experience. I love to talk about programming as well as writing technical tutorials and blogs that can help to others. I'm here to help you navigate the coding cosmos and turn your ideas into reality, keep coding, keep learning :)

Get connected with me. :) LinkedIn Twitter Instagram Facebook

b2eprogrammers

Note - The topics / blogs on the website is written with minimal errors, if you find an error somewhere or would like to advise / appreciate you can mail us at [email protected] - Thank You.

Watch Video.

Description ☞

Do like and subscribe the channel ☻

Computer Hindi Notes

Operators in C Language

assignment operator in c in hindi

  • ऑपरेटर एक सिंबल होता है जो Value या Variable को Operate करता है। उदाहरण के लिए: + एक ऑपरेटर है जो संख्याओ को जोड़ता है। C programming में कई built-in operators होते हैं|
  • Operators एक या एक से अधिक variable, constants या operands के साथ मिलकर काम करते हैं| Variable, constant, operands, function और operators इन सभी को एक साथ मिला देने से एक expression बनता है|
  • Operands और Operators को मिलाकर Expression बनता है| Operands variables ही होते हैं जो की Operators के साथ मिलकर कुछ operation perform करते हैं|

Types of Operators in C

  • Arithmetic Operators
  • Relational Operators

Logical Operators

  • Bitwise Operators
  • Ternary or Conditional Operators
  • Assignment Operator
  • Special Operator

Arithmetic operators +, -, *, /, %
Relational operators >, <, ==, >=, <=, !=
Logical operators &&, ||, !=
Increment and decrement operator ++ and —
Assignment operator =
Bitwise operator &, |, ^, >>, <<, ~
Comma operator ,
Conditional operator ?:

Arithmetic operators

अर्थमेटिक ऑपरेटर का उपयोग mathematical operations को perform करने के लिए होता है जैसे जोड़ (+), घटाव (-), गुणा (*), विभाजन (/) और मापांक (%)

+ इस ऑपरेटर का उपयोग दो ऑपरेंड को जोड़ने के लिए किया जाता है
इस ऑपरेटर का उपयोग दो ऑपरेंड को घटाने के लिए किया जाता है
* इस ऑपरेटर का उपयोग दो ऑपरेंड का गुणा करने के लिए किया जाता है
/ इस ऑपरेटर का उपयोग दो ऑपरेंड को डिवाइड करने के लिए किया जाता है
% इस ऑपरेटर का उपयोग दो ऑपरेंड के मापांक विभाजन के लिए किया जाता है

Increment and Decrement Operator

Increment and Decrement ऑपरेटर दोनों ही बहुत उपयोगी ऑपरेटर होते हैं जो आमतौर पर कैलकुलेशन को कम करने के लिए उपयोग किए जाते हैं, अर्थात् ++ x और x ++ का अर्थ है x = x + 1 अर्थात X में 1 value को बढ़ाना और -x और x– का अर्थ है x = x-1 अर्थात X में 1 Value को घटाना| लेकिन ऑपरेंड के पहले या बाद में लिखे गए ++ या −− के बीच थोड़ा अंतर है। प्री-इन्क्रीमेंट में पहले 1 को ऑपरेंड में जोड़ता है और फिर रिजल्ट को बाईं ओर वेरिएबल को असाइन किया जाता है, जबकि पोस्ट-इन्क्रीमेंट पहले लेफ्ट पर वैरिएबल को वैल्यू असाइन करता है और फिर ऑपरेंड में 1 जोड़ता है।

++ Increment operator – एक के बाद एक पूर्णांक मान बढ़ाता है
−− Decrement operator – एक के बाद पूर्णांक मान घटाता है

Relational operators

रिलेशनल ऑपरेटरों का उपयोग दो वैल्यू की तुलना करने के लिए किया जाता है। इसलिए इसे Comparison operator भी कहा जाता है|

==

इस operator को equal to operator कहा जाता है| इस operator का इस्तेमाल दो value को equal check करने के लिए किया जाता है| अगर दोनों value equal होती है तो यह true return करता है|

!=

इस operator को Not equal to operator कहा जाता है| इसका इस्तेमाल दो operands को equal नहीं होने के लिए check किया जाता है| मतलब की इस operator का इस्तेमाल दो operands के value को check करने के लिए किया जाता है अगर दोनों operands का
value equal नहीं होता है तो यह true return करता है|


> इस operator को Greater than operator कहा जाता है| इसका इस्तेमाल First operand के value को second operand के value से greater check करने के लिए किया जाता है| अगर First operand का value second operand के value से बड़ा होता है तो यह true
return करता है जैसे (5 > 2) return true
< इस operator को Less than operator कहा जाता है| इसका इस्तेमाल First operand के value को second operand के value से less than check करने के लिए किया जाता है|
अगर First operand का value second operand के value से छोटा होता है तो यह true
return करता है जैसे (3 < 4) return true
>= इस operator को Greater than equal to operator कहा जाता है| इसका इस्तेमाल First operand के value को second operand के value से greater और equal check करने के लिए किया जाता है| अगर First operand का value second operand के value से बड़ा होता है या बराबर होता है तो यह true return करता है जैसे (5 >= 5) return true
<= इस operator को Less than equal to operator कहा जाता है| इसका इस्तेमाल First operand के value को second operand के value से Less और equal check करने के लिए किया जाता है| अगर First operand का value second operand के value से छोटा होता है या बराबर होता है तो यह true return करता है जैसे (5 <= 5) return true

C में तीन प्रकार के Logical operator होते है जब हमे दो कंडीशन में से किसी एक को चुनना हो तब हम Logical Operator का प्रयोग करते है| &&- and, ||- or, !- Not.

&& Logical AND (a && b) is false
|| Logical OR (a || b) is true
! Logical NOT (!a) is false

Bitwise Operator

C लैंग्वेज में बिटवाइज ऑपरेटर का प्रयोग bit लेवल के ऑपरेशन करने के लिए किया जाता है|

& Bitwise AND
| Bitwise OR
^ Bitwise exclusive OR
<< left shift
>> right shift

Special Operators

C कुछ विशेष ऑपरेटरों को सपोर्ट करता है|

sizeof() यह operator किसी भी variable का size उसके data type के अनुसार return करता है|
& यह operator variable के address को return करता है|
* Pointer variable को denote करने के लिए इस्तेमाल किया जाता है|

Related Posts

Variable in “c” language, variables in c.

Data Types in C language

Data Types in C language

Data type in c and c++, start typing and press enter to search, dca के सभी नोट्स, पुराने पेपर और महत्वपूर्ण प्रश्न उत्तर, pgdca के सभी नोट्स, पुराने पेपर और महत्वपूर्ण प्रश्न उत्तर.

C Data Types

C operators.

  • C Input and Output
  • C Control Flow
  • C Functions
  • C Preprocessors

C File Handling

  • C Cheatsheet

C Interview Questions

  • C Programming Language Tutorial
  • C Language Introduction
  • Features of C Programming Language
  • C Programming Language Standard
  • C Hello World Program
  • Compiling a C Program: Behind the Scenes
  • Tokens in C
  • Keywords in C

C Variables and Constants

  • C Variables
  • Constants in C
  • Const Qualifier in C
  • Different ways to declare variable as constant in C
  • Scope rules in C
  • Internal Linkage and External Linkage in C
  • Global Variables in C
  • Data Types in C
  • Literals in C
  • Escape Sequence in C
  • Integer Promotions in C
  • Character Arithmetic in C
  • Type Conversion in C

C Input/Output

  • Basic Input and Output in C
  • Format Specifiers in C
  • printf in C
  • Scansets in C
  • Formatted and Unformatted Input/Output functions in C with Examples
  • Operators in C
  • Arithmetic Operators in C
  • Unary operators in C
  • Relational Operators in C
  • Bitwise Operators in C
  • C Logical Operators

Assignment Operators in C

  • Increment and Decrement Operators in C
  • Conditional or Ternary Operator (?:) in C
  • sizeof operator in C
  • Operator Precedence and Associativity in C

C Control Statements Decision-Making

  • Decision Making in C (if , if..else, Nested if, if-else-if )
  • C - if Statement
  • C if...else Statement
  • C if else if ladder
  • Switch Statement in C
  • Using Range in switch Case in C
  • while loop in C
  • do...while Loop in C
  • For Versus While
  • Continue Statement in C
  • Break Statement in C
  • goto Statement in C
  • User-Defined Function in C
  • Parameter Passing Techniques in C
  • Function Prototype in C
  • How can I return multiple values from a function?
  • main Function in C
  • Implicit return type int in C
  • Callbacks in C
  • Nested functions in C
  • Variadic functions in C
  • _Noreturn function specifier in C
  • Predefined Identifier __func__ in C
  • C Library math.h Functions

C Arrays & Strings

  • Properties of Array in C
  • Multidimensional Arrays in C
  • Initialization of Multidimensional Array in C
  • Pass Array to Functions in C
  • How to pass a 2D array as a parameter in C?
  • What are the data types for which it is not possible to create an array?
  • How to pass an array by value in C ?
  • Strings in C
  • Array of Strings in C
  • What is the difference between single quoted and double quoted declaration of char array?
  • C String Functions
  • Pointer Arithmetics in C with Examples
  • C - Pointer to Pointer (Double Pointer)
  • Function Pointer in C
  • How to declare a pointer to a function?
  • Pointer to an Array | Array Pointer
  • Difference between constant pointer, pointers to constant, and constant pointers to constants
  • Pointer vs Array in C
  • Dangling, Void , Null and Wild Pointers in C
  • Near, Far and Huge Pointers in C
  • restrict keyword in C

C User-Defined Data Types

  • C Structures
  • dot (.) Operator in C
  • Structure Member Alignment, Padding and Data Packing
  • Flexible Array Members in a structure in C
  • Bit Fields in C
  • Difference Between Structure and Union in C
  • Anonymous Union and Structure in C
  • Enumeration (or enum) in C

C Storage Classes

  • Storage Classes in C
  • extern Keyword in C
  • Static Variables in C
  • Initialization of static variables in C
  • Static functions in C
  • Understanding "volatile" qualifier in C | Set 2 (Examples)
  • Understanding "register" keyword in C

C Memory Management

  • Memory Layout of C Programs
  • Dynamic Memory Allocation in C using malloc(), calloc(), free() and realloc()
  • Difference Between malloc() and calloc() with Examples
  • What is Memory Leak? How can we avoid?
  • Dynamic Array in C
  • How to dynamically allocate a 2D array in C?
  • Dynamically Growing Array in C

C Preprocessor

  • C Preprocessor Directives
  • How a Preprocessor works in C?
  • Header Files in C
  • What’s difference between header files "stdio.h" and "stdlib.h" ?
  • How to write your own header file in C?
  • Macros and its types in C
  • Interesting Facts about Macros and Preprocessors in C
  • # and ## Operators in C
  • How to print a variable name in C?
  • Multiline macros in C
  • Variable length arguments for Macros
  • Branch prediction macros in GCC
  • typedef versus #define in C
  • Difference between #define and const in C?
  • Basics of File Handling in C
  • C fopen() function with Examples
  • EOF, getc() and feof() in C
  • fgets() and gets() in C language
  • fseek() vs rewind() in C
  • What is return type of getchar(), fgetc() and getc() ?
  • Read/Write Structure From/to a File in C
  • C Program to print contents of file
  • C program to delete a file
  • C Program to merge contents of two files into a third file
  • What is the difference between printf, sprintf and fprintf?
  • Difference between getc(), getchar(), getch() and getche()

Miscellaneous

  • time.h header file in C with Examples
  • Input-output system calls in C | Create, Open, Close, Read, Write
  • Signals in C language
  • Program error signals
  • Socket Programming in C
  • _Generics Keyword in C
  • Multithreading in C
  • C Programming Interview Questions (2024)
  • Commonly Asked C Programming Interview Questions | Set 1
  • Commonly Asked C Programming Interview Questions | Set 2
  • Commonly Asked C Programming Interview Questions | Set 3

assignment operator in c in hindi

Assignment operators are used for assigning value to a variable. The left side operand of the assignment operator is a variable and right side operand of the assignment operator is a value. The value on the right side must be of the same data-type of the variable on the left side otherwise the compiler will raise an error.

Different types of assignment operators are shown below:

1. “=”: This is the simplest assignment operator. This operator is used to assign the value on the right to the variable on the left. Example:

2. “+=” : This operator is combination of ‘+’ and ‘=’ operators. This operator first adds the current value of the variable on left to the value on the right and then assigns the result to the variable on the left. Example:

If initially value stored in a is 5. Then (a += 6) = 11.

3. “-=” This operator is combination of ‘-‘ and ‘=’ operators. This operator first subtracts the value on the right from the current value of the variable on left and then assigns the result to the variable on the left. Example:

If initially value stored in a is 8. Then (a -= 6) = 2.

4. “*=” This operator is combination of ‘*’ and ‘=’ operators. This operator first multiplies the current value of the variable on left to the value on the right and then assigns the result to the variable on the left. Example:

If initially value stored in a is 5. Then (a *= 6) = 30.

5. “/=” This operator is combination of ‘/’ and ‘=’ operators. This operator first divides the current value of the variable on left by the value on the right and then assigns the result to the variable on the left. Example:

If initially value stored in a is 6. Then (a /= 2) = 3.

Below example illustrates the various Assignment Operators:

Please Login to comment...

Similar reads.

  • C-Operators
  • cpp-operator

Improve your Coding Skills with Practice

 alt=

What kind of Experience do you want to share?

ItPolyNotes

Information Technology & Computer Science Hindi Notes

What is operator? (ऑपरेटर क्या होते हैं।)

इस article में हम operator in hindi  में सरल व आसान भाषा में जानेंगे .. तो चलिए start करते हैं……

operator  एक symbol है। जिसका कार्य mathematical तथा logical operation करना है।

           C language में operator को 6 भागों में बांटा गया है।

(1)   arithmetic operator :-.

इसमे math की basic calculation में इस्तेमाल होने वाले operator आते हैं। Ex:- (*, /, – , +, ×, %)

( 2) Relational operator :-

यह operator दो सख्याओ में मध्य या data type के मध्य समबन्ध स्थापित करता हैं।  Ex:-  ( < , <= , > , >= , == , !=)

(3) logical operator: –

c language 3 logical operator को support करती है। Ex:- ( && , ||, !)

(4) Assignment operator :-

 इसका use किसी भी variable को value देने के लिए किया जाता है।  Ex:- a=b , b=a

B का मान a को दिया जायेगा , a का मान b को दिया जायेगा|

इसे भी देखे:- 

  • Elements of object oriented programming in Hindi ? short Notes
  • Analysis of algorithm in Hindi
  • Concept of data processing in Hindi

(5) conditional operator :-

 यह value को condition के आधार पर save करता है। Ex:- a>b    1:0 A=1 ,b=0 

(6) increment and decrement operator:-

 किसी value पर एक कि बढ़ोत्तरी के लिए increment operator तथा किसी value पर एक कि कमी के लिए decrement operator का use होता है। Increment के लिए (++) चिन्ह का तथा decrement के लिए (–) चिन्ह का use होता हैं। Ex:-  a=5; A++; A=6;

इसे भी देखे

  • Computer Online quiz || Exam practice in Hindi – X
  • Computer Online quiz || Exam practice in Hindi – IX
  • Basic Computer Online Test || Online quiz || Exam practice-7
  • Basic Computer Online Test || Online quiz || Exam practice-6

अगर आपके लिए यह आर्टिकल useful रहा हो तो इसे अपने दोस्तों और classmates के साथ अवश्य share कीजिये,

या अन्य विषयों से related कोई question हो तो नीचे कमेंट के द्वारा बताइए. thanks .

Leave a Comment Cancel reply

COMMENTS

  1. Operators in C in Hindi

    Operators in C in Hindi: C ... Assignment Operators. इन ऑपरेटरों का उपयोग एक variable, एक property, एक event या एक indexer तत्व के लिए एक नया मान निर्दिष्ट करने के लिए किया जाता है ...

  2. Assignment Operators in C in hindi

    What is Operators? And it's types.Please click the link which is given below....👇👇👇👇https://www.youtube.com/playlist?list=PLqleLpAMfxGCQBaYYmZs0Rq7lXGOqU...

  3. Assignment Operators In C In Hindi [ With Examples

    आज के इस पोस्ट में हम Assignment Operators In C Language के बारे बात करेंगे कि सी लैंग्वेज में असाइनमेंट ऑपरेटर्स क्या है? (What Is Assignment Operators In C In Hindi)

  4. Assignment Operators in C Programming in Hindi

    इस tutorial में हम Assignment Operators के बारे में पढ़ेंगे लेकिन अगर आपने Operators in C Programming वाला tutorial नहीं पढ़ा है तो पहले उसे जरूर पढ़ें.. C programs में variable को values ज्यादातर 2 तरह से दी जाती ...

  5. c operator in hindi & types of operators in hindi

    4:- assignment operators (असाइनमेंट ऑपरेटर):-जब किसी वेरिएबल को मान प्रदान किया जाता है, तो असाइनमेंट operator का प्रयोग किया जाता है.

  6. Assignment Operators In Hindi

    Assignment Operators ग्यारह प्रकार के होते है | Assignment Operator (=) Add Assignment Operator (+=) Subtract Assignment Operator (-=) Multiply Assignment Operator (*=) Divide Assignment Operator (/=) Modulus Assignment Operator (%=) Bitwise AND Assignment Operator (&=) Bitwise OR Assignment Operator (|=) Bitwise XOR Assignment Operator (^=) Left Shift Assig

  7. Assignment Operator in C Programming

    Assignment Operators in C Programming | In Hindi | Tutorial 10There are a lots of operator in C Programming. Operators are those which performs some operatio...

  8. Assignment Operator in C

    Assignment Operator in C in Hindi. Assignment operator का इस्तेमाल variable में value को store या assign करने के लिए होता है जैसे यदि हमें किसी भी variable में value 18 को store करना तो हम उसे कुछ इस ...

  9. Assignment Operators In Hindi

    Assignment Operators ग्यारह प्रकार के होते है | 1. Assignment Operator2. Add Assignment Operator3. Subtract Assignment Operator4. Multiply Assignment Operator5. Divide Assignment Operator6. Modulus Assignment Operator7. Bitwise AND Assignment Operator8. Bitwise OR Assignment Operator9. Bitwise XOR Assignment Operator10.Left Shift Assignment Operator11.Right

  10. सी लैंग्वेज के हिंदी नोट्स (C Language Notes In Hindi)

    Logical Operators In C In Hindi; Bitwise Operators In C In Hindi; Assignment Operators In C In Hindi; Operator Precedence And Associativity in C In Hindi; Control Statements In C Language. Introduction of Control Statement in C In Hindi; If Statement in C In Hindi; If-else Statement in C In Hindi; Switch Statement in C In Hindi; Break Statement ...

  11. Assignment Operators in C Language Explained in Hindi

    Myself Shridhar Mankar a Engineer l YouTuber l Educational Blogger l Educator l Podcaster. My Aim- To Make Engineering Students Life EASY.Website - https:/...

  12. (Updated) Operators In C In Hindi & Types of Operators

    Assignment Operators In C; Conditional Operator in C; Conclusion . दोस्तों आज हमने इस पोस्ट में देखा कि सी लैंग्वेज में ... (What are the Operators in C In Hindi) और ऑपरेटर्स कितने प्रकार के होते है ...

  13. Operators in C in Hindi

    Operators in C in Hindi - C programming में operators क्या होते हैं? C programming के पिछले tutorial series में हमने Format specifier के बारे में जाना था ... A = 5, C = A+B += Add AND Assignment Operator. यह operator right operand को left operand ...

  14. Operators in C Programming in Hindi

    Operands in C Programming in Hindi. Operators और Operands दोनों एक जैसे words लगते हैं इसलिए कुछ programmer को लगता है की ये दोनों एक ही term है लेकिन real में ऐसा नहीं है. ... Assignment Operators in C ...

  15. operators in c language in hindi , ऑपरेटर्स इन c कंप्यूटर भाषा में

    operators in c language in hindi , ऑपरेटर्स इन c कंप्यूटर भाषा में हिंदी में , ऑपरेटर in c लैंग्वेज 12th notes in hindi 12th class notes in hindi videos pdf ... 4.Assignment Operator 5.Increment or Decreament Operator 6.Conditional operator 7.Bitwise ...

  16. Operators In Hindi

    Operators in C Types of Operators Arithmetic Operators Relational Operators Logical Operators Bitwise Operators Assignment Operators Increment / Decrement Operators Conditional / Ternary Operator 1. Arithmetic Operators OperatorsExplaination + (Addition)ये दो Operands को add करता है | - (Subtraction)ये right operand से left operand को निकाल देत

  17. Programming

    Assignment Operators (in Hindi) Lesson 11 of 50 • 51 upvotes • 13:08mins. Saurabh Shukla. Play with priority rules of Operators. Learn about assignment operator and compound assignment Operators. Continue on app (Hindi) Conceptual Learning of C Language. 50 lessons • 11h 12m . 1.

  18. C Operators In Hindi

    C Assignment Operators. Assignment Operator को equals to = से represent करते हैं , जो कि value को किसी variable में assign करने के लिए use किया जाता है। हालाँकि इसे Arithmetic Operators के साथ भी use करते हैं। नीचे दिए गए Example में ...

  19. Operators in C Language

    Operators in C Language. ऑपरेटर एक सिंबल होता है जो Value या Variable को Operate करता है। उदाहरण के लिए: + एक ऑपरेटर है जो संख्याओ को जोड़ता है। C programming में कई built-in operators होते हैं|

  20. Assignment Operators in C

    Assignment operator overloading is binary operator overloading.Overloading assignment operator in C++ copies all values of one. 4 min read. Conversion Operators in C++. In C++, the programmer abstracts real-world objects using classes as concrete types. Sometimes, it is required to convert one concrete type to another concrete type or primitive ...

  21. What is operator in hindi? (ऑपरेटर क्या होते हैं।) ItPolyNotes

    operator in hindi : operator एक symbol है। जिसका कार्य mathematical तथा logical operation करना है। C language में operator को 6 भागों में बां ... Assignment operator:- इसका use किसी भी variable को value देने के लिए ...

  22. Overloading Assignment Operator (=)

    Overloading Assignment Operator (=) | Shorthand Assignment Operators | C++ Programming | In Hindi | Tutorial #69Hi All, Welcome all of you to the video serie...

  23. Assignment Operators In Hindi

    Assignment Operators ग्यारह प्रकार के होते है | Assignment Operator (=) Add Assignment Operator (+=) Subtract Assignment Operator (-=) Multiply Assignment Operator (*=) Divide Assignment Operator (/=) Modulus Assignment Operator (%=) Bitwise AND Assignment Operator (&=) Bitwise OR Assignment Operator (|=) Bitwise XOR Assignment Operator (^=) Left Shift Assig

  24. Operators in C++

    Welcome to Video 12 of the C++ for Beginners series by iSyllabi! In this video, we dive into the world of operators in C++. Understanding operators is crucia...