what would be the output of the following program int main(){int x,y= 10, z=10; x= (y= =z); cout<return 0;}
Answers
Answered by
0
Answer:
1
Explanation:
Answered by
0
Answer:
There will no output of this program.
Runtime Error.
Explanation:
After the execution of this program, the compiler will show runtime error.
It will show this kind of error because :
1. No proper syntax is used.
2. Undeclared variables, such as count is undeclared in the main function.
3. "==" cannot be resolved since there is a gap between one "=" and the other "=".
Runtime Error :
These are kinds of errors that indicates that there may be a bug in the code or the library of the runtime execution memory cannot handle these kinds of operations, in special cases it may be a low memory.
SPJ2
Similar questions
Computer Science,
4 months ago
Math,
4 months ago
English,
4 months ago
Chemistry,
9 months ago
Geography,
1 year ago
Accountancy,
1 year ago
World Languages,
1 year ago