answersLogoWhite

0


Best Answer

* <int>->

User Avatar

Wiki User

โˆ™ 2007-11-04 16:59:21
This answer is:
User Avatar
Study guides

What is a programming language

What does DOS stand for

What is a software that is distributed for free

What do unix and Linux have in common

โžก๏ธ
See all cards
3.91
โ˜†โ˜…โ˜†โ˜…โ˜†โ˜…โ˜†โ˜…โ˜†โ˜…
44 Reviews

Add your answer:

Earn +20 pts
Q: What is the BNF for integer literal?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

What is a character literal in java?

A character literal is a single character stored as a 16 bit integer. A character literal is enclosed in single quotes. For example, 'A', ' ', and '!' are all character literals.


What is literal and different types of literals in java?

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.


Rewrite the BNF of Example 3.4 to add the and -- unary operators of Java?

123


Are pointers integers?

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.


What is the BNF of the for loop?

FOR ::= for ( [EXPRESSION]; EXPRESSION;[EXPRESSION]) STATEMENTnote: FOR itself is a STATEMENT as well:STATEMENT ::= ...| IF | ELSE | WHILE | FOR | ... | EXPRESSION; | EMPTY_STATEMENT; | COMPOUND-STATEMENT | ...

People also asked