* <int>->
Chat with our AI personalities
In Java, a literal is the source code representation of a fixed value and are represented without requiring computation. The various types are Integer, Floating-Point, Character and String literals.
123
A pointer holds a memory address, from 0 to the upper limit of your memory (in 32 bit addressing this is up to 2^32, 64 bit is up to 2^64 bytes). So in math terms, a pointer could be considered a non-negative integer. However this is not the same as the integer type used in C and other languages, which refers to how the data at that memory address (the raw bits) is interpreted by the system. So the expression "int *x;" declares a pointer to an integer, but x is a memory address, not a literal C-style integer. The value pointed to by x, however, will be interpreted as a literal C-style integer. It may be easier to see using a pointer to a char: char character = 'C'; char *pointerToCharacter = character; In this case, character is a standard char variable, and pointerToCharacter is a pointer (which is a memory address) that points to the location in memory of a character.
FOR ::= for ( [EXPRESSION]; EXPRESSION;[EXPRESSION]) STATEMENTnote: FOR itself is a STATEMENT as well:STATEMENT ::= ...| IF | ELSE | WHILE | FOR | ... | EXPRESSION; | EMPTY_STATEMENT; | COMPOUND-STATEMENT | ...
2.35 is not an integer.