Computer Science, asked by naikgowtham007, 8 months ago

Which of the following is an invalid statement? *
abc = 1,000,000
a b c = 1000 2000 3000
a,b,c = 1000, 2000, 3000
a_b_c = 1,000,000​

Answers

Answered by noorjamal3962
19

Answer:

a b c = 1000 2000 3000

Explanation:

Spaces are not allowed in variable names.

Answered by adventureisland
1

'a b c = 1000 2000 3000' is an invalid statement. because no whitespace is permitted.

Variable declaration :

  • Alphabets, numbers, and underscores can all be used in a variable.
  • The alphabet and underscore are the only characters that can begin a variable name. It must not begin with a digit.
  • Within the variable name, no whitespace is permitted. An underscore should never be used to start a variable name. Use variable names that aren't just one character long.
  • Any reserved term or keyword cannot be used in the name of a variable. Your variables should be named after terms from the topic area so that the variable's function is apparent.

Similar questions