- 1
Anyone tell me plz , how to do it in compiler. Please me help me , i don't understand this method.
5 Antworten
+ 2
assignment operator :
int a=4;
int b=7;
int sum=a+b;
here "=" is the assignment operator
increment and decrement operators :
++ increment operator
-- decrement operator
ex:
int a=4;
a++; //value of a will be 4, but as soon as it reaches the ; the statement gets terminated and the value of a changes to 5.
int b=7;
b--; //similarly, value of b changes to 6.
ex:
int a=5
int b=--a; //here, value of b will be 4.. and value of a will also change because the decrement operation is applied to a, so the value of a will be 4
int c=a--; //the value of c will be 4.. because it is post decrement the value will chamge only when the statement terminates and the statement has not yet terminated.. and the value of a will change to 3
+ 1
???
+ 1
@sultan ali ..jb tum C++ sikhoge tab tum ko pata chal ja gayega ...fir bhi pata na chale to puchna ..!!
0
assignment and increment
is ko compiler me kesy use karna hain
is me ju new code dy rahy wo waly
0
Thanks bro