Добавить новое поле в новый файл трассировки в NS2

Хорошо подумайте об этом с точки зрения временных переменных.

i =3 ;
i ++ ; // is equivalent to:   temp = i++; and so , temp = 3 and then "i" will increment and become     i = 4;
System.out.println(i); // will print 4

Теперь

i=3;
System.out.println(i++);

эквивалентно

temp = i++;  // temp will assume value of current "i", after which "i" will increment and become i= 4
System.out.println(temp); //we're printing temp and not "i"
0
задан Roman Pokrovskij 16 January 2019 в 10:39
поделиться

0 ответов

Другие вопросы по тегам:

Похожие вопросы: