help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: problem to increment 1 point to scalar


From: Marco Atzeri
Subject: Re: problem to increment 1 point to scalar
Date: Mon, 6 Aug 2018 14:12:50 +0200
User-agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1

Am 06.08.2018 um 14:08 schrieb LucaLuca:
hi,

val=0;

val++
ans=0;  =====> it sould be egual to 1


you are wrong. the ++ is post so
val is incremented after printing the output

octave:5> val=0
val = 0
octave:6> val++
ans = 0
octave:7> val
val =  1

---
Diese E-Mail wurde von Avast Antivirus-Software auf Viren gepr├╝ft.
https://www.avast.com/antivirus




reply via email to

[Prev in Thread] Current Thread [Next in Thread]