which of the following is a correct assignment statement? int a = true; int 45 = b; int c = 35;

which of the following is a correct assignment statement? int a = true; int 45 = b; int c = 35;

which of the following is a correct assignment statement? int a = true; int 45 = b; int c = 35;

Answer

Brief Explanations:

In programming, variable names should start with a letter or an underscore. In the first option, true is a boolean value and cannot be directly assigned to an int in this simple form in most languages. In the second option, starting a variable name with a number is incorrect syntax. The third option int c = 35; is a correct way to declare an integer variable c and assign it the value 35 in many programming languages.

Answer:

int c = 35;