Originally posted by patrick van merchtn: ...if you don't specifie the type, what is the type then and is it ok not to specify the type ?
x = 234; p. 51 s = y; p.52
You left out some important lines. For example, on page 51, it's...
int x; x = 234;
Here, the line int x;declares a variable called "x" with a type of int. Then the line x = 234;assigns a literal value to that (previously declared) variable. Declaration and assignment could also be combined in a single line int x = 234;
And on page 52...
int g = 17; int y = g; y = y + 10; short s; s = y;
"We're kind of on the level of crossword puzzle writers... And no one ever goes to them and gives them an award." ~Joe Strummer sscce.org