QUESTION IMAGE
Question
which of the following is a correct assignment statement? int a = true; int 45 = b; int c = 35;
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.
Snap & solve any problem in the app
Get step-by-step solutions on Sovi AI
Photo-based solutions with guided steps
Explore more problems and detailed explanations
int c = 35;