Ask Question
27 April, 10:58

Which of the following variable names is not valid? 1price 1 price price 1 price1

+4
Answers (2)
  1. 27 April, 12:59
    0
    1price 1 price price 1

    Explanation:

    In the c programming, the rule for valid variable name.

    1. Variable name cannot start with numeric value like 1,2,3 ...

    2. Space and special character other than underscore '_' are not allowed.

    3. After the first letter, numeric values can be used.

    Let discuss the options:

    Option A: 1price

    it start with number which is not allowed.

    Option B: 1 price

    it start with number and also contain the space which is not allowed.

    Option C: price 1

    it contain the space which is not allowed.

    Option D: price1

    it is the valid variable name, start with letter and their is no space.

    Therefore, option A, B and C are correct option.
  2. 27 April, 13:56
    0
    1price 1 price price 1

    Explanation:

    The following variable names are not valid.
Know the Answer?
Not Sure About the Answer?
Find an answer to your question ✅ “Which of the following variable names is not valid? 1price 1 price price 1 price1 ...” in 📘 Computers and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers