Your Web News in One Place

Help Webnuz

Referal links:

Sign up for GreenGeeks web hosting
January 11, 2023 02:28 pm GMT

LOGICAL OPERATOR

Bir yoki bir necha shartlarni solishtirish va ularni to'g'ri yoki noto'ri ekanligini aniqlash.

  • ! - YO'Q.

  • && - VA.

    • YOKI.
  • Natija har doim True yoki False.

  • True 1,False 0 qaytardi.

  • 0 dan boshqa har qanday qiymat True yani Rost deb hisoblanaldi.

#include <iostream>using namespace std;int main() {  int  a = 7;  int  b = 3 + a;  int  c = a && b ;  cout << c;return 0;  }
#include <iostream>using namespace std;int main() {  int  a =27;  int  b = 67 + a;  int  c = ++a < 5  --b < 3 ;  cout << c;return 0;  }

Dasrligimiz kundan kunga qiyin va qiziqarli bolib bormoqda .

@dawroun


Original Link: https://dev.to/charos1mm/logical-operator-4811

Share this article:    Share on Facebook
View Full Article

Dev To

An online community for sharing and discovering great ideas, having debates, and making friends

More About this Source Visit Dev To