nuriddin152

Nuriddin152

Posted on March 11, 2023

Operators

Operator masalan + operatori ikki qiymatni qo'shish uchun ishlatiladi

Misol uchun:

#include <iostream>
using namespace std;

int main()
{

int num = 1900;
int num1 = 1800;

cout << num + num1;

return 0;
}
Enter fullscreen mode Exit fullscreen mode

+ operator ko'pincha yuqoridagi misol kabi, birgalikda ikki qiymatlarni qo'shish uchun ishlatiladi u ham birga bir o'zgarmaydigan qiymat yoki o'zgaradigan o'zgaruvchilani qo'shishingiz uchun foydalanish mumkin

C++da operatorlar

Arifmetik operatorlar:
Tayinlash operatorlari:
Taqqoslash operatorlar:
Mantiqiy operatorlar:

Arifmetik operatorlar
Matematik amallarni + yoki - amallarini bajaradi

Image description

Tayinlash operatorlari

Tayinlash operatorini belgisi = o'zgaruvchini qiymatini belgilash uchun ishlatiladi

#include <iostream>
using namespace std;

int main() 
{

int num = 100;

cout << num;

return 0;
}
Enter fullscreen mode Exit fullscreen mode

Image description

Taqqoslash operatorlari

Ikki qiymatni taqqoslash uchun ishlatiladi

Image description

Mantiqiy operatorlar

O'zgaruvchilar yoki qiymatlar o'rtasidagi mantiqni aniqlash uchun mantiqiy operatorlar qo'llaniladi

Image description

💖 💪 🙅 🚩
nuriddin152
Nuriddin152

Posted on March 11, 2023

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related