+ 2
Can you make it with b-- or --b ?
Question : Can you make it with b-- or --b ?
9 Respostas
+ 3
class PrePostDemo
{ public static void main(String[] args)
{
int i = 3;
i++;
System.out.println(i); // "3"
++i;
System.out.println(i); // "4" System.out.println(++i); // "5" System.out.println(i++); // "5" System.out.println(i); // "5"
}
}
+ 2
yes)
+ 2
So.... can you tell me plz an example
+ 2
++b is prefix // value assignment before using the variable
b++ is postfix // value assignment after using the variable
+ 2
thx, I did not understand the first and the last one
+ 2
I understand it now, THX
+ 2
if you use b++ so the value of b remains the same and print same but only first time and after it will increase by 1 next time when it will print
on the other hand ++b so the value will increase by 1 and then print.... simple :)
0
lets make connection ,, here is my id ( sani_suryavanshi@outlook.com)
0
низрена не понял что написано