Page 318 - CITS_CSA_TT_Hindi
P. 318

कं  ूटर सॉ वेयर ए ीके शन - CITS



           boolean result2 = isTrue || isFalse; // true

           boolean result3 = !isTrue; // false
           इं ीम ट और डे ीम ट ऑपरेटर
           •   ++ (इं ीम ट): ऑपर ड के  वै ू को 1 से बढ़ाता है।
           •   -- (डे ीम ट): ऑपर ड के  वै ू को 1 से घटाता है।

           Example:1
           int count = 5;

           count++; // count is now 6
           count--; // count is now 5
           Example:2

           int j = 0, k = 0;  // Initially both j and k are 0
           j = ++k;  // Final values of both j and k are 1
           Example:3

           int i = 0, k = 0;      // Initially both i and k are 0
           i = k++;             // Final value of i is 0 and k is























































                                                           306

                                  CITS : IT&ITES - कं  ूटर सॉ वेयर ए ीके शन  - पाठ 78 - 84
   313   314   315   316   317   318   319   320   321   322   323