[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
behavior of n++
From: |
Heber Farnsworth |
Subject: |
behavior of n++ |
Date: |
Wed, 11 Sep 2002 17:58:04 -0500 |
There is probably some reason for the following behavior but I can't
figure out what it might be.
$ octave -q
octave:1> n = 0
n = 0
octave:2> n++
ans = 0
octave:3> n++
ans = 1
I was expecting that if I set n=0 then n++ would be 1. Why is this not
true?
Heber
-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.
Octave's home on the web: http://www.octave.org
How to fund new projects: http://www.octave.org/funding.html
Subscription information: http://www.octave.org/archive.html
-------------------------------------------------------------
- behavior of n++,
Heber Farnsworth <=