Programming Languages C++ Objective
Mar 19, 2013

Find out the error in following block of code.

If (x = 100)

    Cout << “x is 100”;

Choose the correct answer:
A) 100 should be enclosed in quotations
B) There is no semicolon at the end of first line
C) Equals to operator mistake
D) Variable x should not be inside quotation
Detailed Explanation

Option C is the right answer.

Discussion (0)

No comments yet. Be the first to share your thoughts!

Share Your Thoughts
Feedback