Home » Questions » Information [ Ask a new question ]

Which of the following will cause a syntax error, if you are trying to compare x to 5? -

Which of the following will cause a syntax error, if you are trying to compare x to 5? -

Asked by: Guest | Views: 33
Total answers/comments: 2
Guest [Entry]

Answer:\: \: \: \: \: \: \: \: \: \: \: \: \: \: \: \: \: \: \: \: \: \: \: \: \: \: \: \: \: \: \: \: \: \: \: \: \: \: \: \: \: \: \: \: \: \: \: \: \: \: \: \: \: \: \: \: \: \: \: \: \: \: \: \: \: \: \: \: \: \: \: \: \: \: \: \: \: \: \: \: \: \: \: \: \: \: \: \:
Guest [Entry]

Answer: if (x = 5) will give syntax error when you are trying to compare x to 5.