December 23, 2022 01:40 pm GMT
Original Link: https://dev.to/abrorjon8640/assigment-operator-haqida-4j86
assigment operator haqida;
Tenglik belgisi =
bu belgi replitda int
,string
float
vachar
dan keyin kelgan belgi bilan tenglik belgisidan keyin kelganbutun son ,text(matn), kasr , belgi
larni tenglashtirib beradi.
int a = 10 ;
float PI = 3.14; float r = L/(2*PI); float S = PI * (r*r);
string ism = "davron";
assignment operator
biz yozgan ko'dlarni qisqartirib yozib beradi.
b = b + a; //b += a;b = b - a; //b -= a; b = b / a; //b /= a;b = b * a; //b *= a;
Biz yozgan o'zgaruvchilarni keyinchalik ham o'zgartirsa bo'ladi.
#include <iostream>#include <cmath>using namespace std;int main (){ int a = 7; string ism = "Abror"; cout << a << endl; cout << ism << endl; a = 10; ism = "Sardor"; cout << a << endl; cout << ism;return 0;}
Original Link: https://dev.to/abrorjon8640/assigment-operator-haqida-4j86
Share this article:
Tweet
View Full Article
Dev To
An online community for sharing and discovering great ideas, having debates, and making friendsMore About this Source Visit Dev To