T
trainee
0 is the first element in an array, however in decimal constant connotation,
it acts as it normally would in the real world.
tranee
it acts as it normally would in the real world.
tranee
int a = 5 * 5;
... a dosen't return 35 ? considering that the computer counts 0 ?
Maximus said:Hi,
I was doing like nothing in front of my screen when I suddenly had the
misterious question : why when you do somthing like this:
int a = 5 * 5;
... a dosen't return 35 ? considering that the computer counts 0 ?
tia,
max.
== ( 0 + 0 + 0 + 0 + 0 + 0 )
+ ( 1 + 1 + 1 + 1 + 1 + 1 )
+ ( 1 + 1 + 1 + 1 + 1 + 1 )
+ ( 1 + 1 + 1 + 1 + 1 + 1 )
+ ( 1 + 1 + 1 + 1 + 1 + 1 )
+ ( 1 + 1 + 1 + 1 + 1 + 1 )
Maximus said:Hi,
I was doing like nothing in front of my screen when I suddenly had the
misterious question : why when you do somthing like this:
int a = 5 * 5;
... a dosen't return 35 ? considering that the computer counts 0 ?
Maximus said:Hi,
I was doing like nothing in front of my screen when I suddenly had the
misterious question : why when you do somthing like this:
int a = 5 * 5;
... a dosen't return 35 ? considering that the computer counts 0 ?
Maximus said:Hi,
I was doing like nothing in front of my screen when I suddenly had the
misterious question : why when you do somthing like this:
int a = 5 * 5;
... a dosen't return 35 ? considering that the computer counts 0 ?
Maximus said:Hi,
I was doing like nothing in front of my screen when I suddenly had the
misterious question : why when you do somthing like this:
int a = 5 * 5;
... a dosen't return 35 ? considering that the computer counts 0 ?
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.