Wednesday, 19 December 2018

10.Operators क्या हे | कितने होते हे |

OPERATORS:

  1. Arithmetic Operators :
  2. Relational Operators
  3.  Logical Operators
  4.  Assignment operator:
  5.  Increment(++)/decrement operators(- -):
  6.  Conditional operators(ternary operators)
  7.  Bitwise operations
  8.  Special operators
Opretors 8 प्रकार के होते हे |  आज हम जानेगे की ये कैसे काम करते हे ये आज हम सीखेंगे | 
Arithmetic Operators:
  • Any Integer and Floating point numbers can be added, subtracted, divided or multiplied using Arithmetic Operators.किसी भी पूर्णांक और फ़्लोटिंग बिंदु संख्या को अंकगणितीय ऑपरेटरों का उपयोग करके जोड़ा, घटाया, विभाजित या गुणा किया जा सकता है।

 Operator                 Meaning                   Eample
   +                            Addition                     x+y
    -                            Subtraction                x-y
   *                            Multiplication            x*y
   /                             Divisin                        x/y
   %                           Modulo                      x%y

Relational Operators :
  • The Relational and equality operators are used to test or compare the values between two operands.रिलेशनल और समानता ऑपरेटरों का उपयोग दो ऑपरेटरों के बीच मूल्यों की जांच या तुलना करने के लिए किया जाता है
  •  It Produce Integer result. यह इंटीजर परिणाम उत्पन्न करता है।
  •  If the Condition is false then the integer result is 0.यदि स्थिति गलत है तो पूर्णांक परिणाम 0 है।
  •  If the Condition is true then the integer result is 1.यदि स्थिति सत्य है तो पूर्णांक परिणाम 1 है।
Operator                   Meaning
   ==                             Equal to
   !=                              Not equal to
   >                               Greater than
  <                                Less than
           >=                              Greater than or equal to
  <=                              Less than or equal to


Logical Operators  :
  • There are three logical operators in the C language..सी भाषा में तीन लॉजिकल ऑपरेटर हैं:

 Operator      Description
&&             AND operator
||               OR operator
!                    NOT operator
  • The first two, the AND and OR operators, are binary operators; that is, they both take two operands (one to the left and one to the right of the operator).पहले दो, एंड और ओआर ऑपरेटर बाइनरी ऑपरेटर हैं; यानी, वे दोनों दो ऑपरेंड (बाएं से एक और ऑपरेटर के दाईं ओर एक) लेते हैं।
  • If either expression evaluates to 0 that is false Otherwise, A value of 1 (true).A general format of the logical operator is:यदि अभिव्यक्ति या तो 0 का मूल्यांकन करती है जो गलत है अन्यथा, 1 (सत्य) का मान।तार्किक ऑपरेटर का एक सामान्य प्रारूप है:
Assignment Operator:
  • In the C language, the = operator is called an assignment operator. The Assignment Expression In C Language is..सी भाषा में, = ऑपरेटर को असाइनमेंट ऑपरेटर कहा जाता है। सी भाषा में असाइनमेंट अभिव्यक्ति है ..
  • The equal to (=) symbol is called assignment operator.बराबर (=) प्रतीक को असाइनमेंट ऑपरेटर कहा जाता है।
  • It is an operator that assign the value of expression on its right side to the variable on its left side..Ex. A=B B=A....यह एक ऑपरेटर है जो अभिव्यक्ति के मूल्य को दाएं तरफ चर के तरफ चर के पक्ष में असाइन करता है ..
Increment/Decrement operators:

  • C includes two useful operators that simplify two common operations. These are the increment and decrement operators, ++ and – –. The operator ++ adds 1 to its operand, and – – subtracts 1.सी में दो उपयोगी ऑपरेटर शामिल हैं जो दो सामान्य संचालन को सरल बनाते हैं। ये वृद्धि और कमी ऑपरेटर हैं, ++ और - -। ऑपरेटर ++ अपने ऑपरेंड में 1 जोड़ता है, और - - घटाता है 1।
  • These operator is know as “Unary” Operator because it contain only single Operator.इन ऑपरेटर को "यूनरी" ऑपरेटर के रूप में जाना जाता है क्योंकि इसमें केवल एकल ऑपरेटर होता है।
Conditional operator:

  • The operator ?: is called the conditional operator, which is the only operator that takes three operands.ऑपरेटर?: सशर्त ऑपरेटर कहा जाता है, जो एकमात्र ऑपरेटर है जो तीन ऑपरेंड लेता है।
  • The Conditional Operator used in C Language is ?: and it used for check condition than gives output as true or False.C सी भाषा में प्रयुक्त सशर्त ऑपरेटर है?: और यह वास्तविक या गलत के रूप में आउटपुट देने की तुलना में चेक स्थिति के लिए उपयोग किया जाता है।
  • Conditional Operator as some time called turnery operator.सशर्त ऑपरेटर कुछ समय के रूप में टर्नरी ऑपरेटर कहा जाता है।
Bitwise operations :

  • Language provides six operators for bit manipulation.भाषा बिट हेरफेर के लिए छह ऑपरेटरों प्रदान करता है।
  •  C operators with complete data entities that are stored as one or more bytes such as character, integer and double precision constants and variable.सी ऑपरेटरों को पूर्ण डेटा इकाइयों के साथ जो एक या अधिक बाइट्स जैसे चरित्र, पूर्णांक और डबल परिशुद्धता स्थिरांक और चर के रूप में संग्रहीत किया जाता है।
  • In addition, C provides for the manipulation of individual bits of character and integer constants and variable.इसके अलावा, सी चरित्र और पूर्णांक स्थिरांक और चर के व्यक्तिगत बिट्स के हेरफेर के लिए प्रदान करता है।
  • The operators that are used to perform bit manipulation are called bit operators.ऑपरेटर जो बिट मैनिप्ल्यूशन करने के लिए उपयोग किए जाते हैं उन्हें बिट ऑपरेटर कहा जाता है।

Operator Description
& bitwise AND operator
| bitwise OR operator
^ bitwise exclusive OR (XOR) operator
~ bitwise complement operator
>> right-shift operator
<< left-shift operator
Special operator:
  • C Language supports many special operators too.सी भाषा भी कई विशेष ऑपरेटरों का समर्थन करता है।
  • They are used for some special processes in C Programming.वे सी प्रोग्रामिंग में कुछ विशेष प्रक्रियाओं के लिए उपयोग किया जाता है।
  • The special Operators used in C language are:Language सी भाषा में उपयोग किए जाने वाले विशेष ऑपरेटर हैं:
Comma(,)
SizeofPointer
 Operator(& and *)

Sizeof() operator:

  • How do you know the size of a data type on your machine? The answer is that you can measure the data type size by using the sizeof operator provided by C. The general form of the sizeof operator is...आप अपनी मशीन पर डेटा प्रकार के आकार को कैसे जानते हैं? जवाब यह है कि आप सी द्वारा प्रदान किए गए आकार के ऑपरेटर का उपयोग कर डेटा प्रकार के आकार को माप सकते हैं। आकार के ऑपरेटर का सामान्य रूप है
तो दोस्तों अगर आपको  हमारा ऐ blog पसंद आया तो Like और Share जरूर करे। 
stud21022@gmail.com 

3 comments: