[Top][All Lists]

[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?


Octave is freely available under the terms of the GNU GPL.

Octave's home on the web:
How to fund new projects:
Subscription information:

reply via email to

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