Sovi.AI - AI Math Tutor

Scan to solve math questions

QUESTION IMAGE

which of the following is a not correct assignment statement int 13 = h…

Question

which of the following is a not correct assignment statement
int 13 = h;
double f = 13 + 2.6;
int a = 23;

Explanation:

Brief Explanations

In programming, variable names must start with a letter, an underscore, or a dollar sign. In the statement "int 13 = h;", the variable name starts with a digit which is incorrect syntax. The other two statements follow proper assignment - variable 'f' is assigned the sum of an integer and a double, and variable 'a' is assigned an integer value.

Answer:

int 13 = h;