Radical Developers welcomes all the visitors to be a member of the team. Come join us. Its all about open-source concept. All Programs are written and tested in MacOS X, Unix, Linux and may not match with the outputs of Turbo C++ in Windows

Monday, January 24, 2011

Find Errors, if any, in the following C++ statements.

Statements :

(a) cout << "x=" x;
(A) '<<' operator missing between "x=" and x
(b) m = 5; //n = 10; // s = m + n;
(A) no error
(c) cin >> x; >> y;
(A) Terminator operator ';' present in between  cin >> x and >> y
        OR
    'cin' missing in between x; and >> y
(d) cout << \n "Name:" << name;
(A) Escape sequence '\n' present outside double quotes (" ")
(e) cout << "Enter Value:"; cin >> x;
(A) no error
(f) /*Addition*/ z = x + y;
(A) no error

No comments:

Post a Comment