<[EMAIL PROTECTED]> wrote:
> >>In some programming languages (C, C++ and others in that family), 021
> means 21 OCTAL which is 17 decimal.
>
> Not exactly: \021 is octal, and it should be include between quotes, like in
> x = '\021';
You don't know your C or C++ well enough... try the following program:
#include <stdio.h>
int main() {
int twentyone = 021;
printf("021 is %d\n", twentyone);
return twentyone;
}
You will see that it prints 17 (and returns a status code of 17).
--
Sean A Corfield -- http://www.corfield.org/blog/
"If you're not annoying somebody, you're not really alive."
-- Margaret Atwood
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

