Which of the following are invalid variablr names? Int, _main(), $hello,#welcome
Answers
Answered by
1
Answer:
_main(),$hello,#welcome are invalid variable names.
Explanation:
the rules for creating variables are:
1.Variable name must begin with letter or underscore.
2.variables are case sensitive.
3.They can be constructed with digits, letters.
4.No special symbols are allowed other than underscore.
The last rule holds good here.
Hope you liked the answer.
Similar questions