Saved Bookmarks
| 1. |
Following is a sample C++ program. Identify the errors if any in the structure. Correct the program.#include<iostream>using namespace std; int main [ ] { */ It is a simple program */ Cout<<“Welcome to C++”Cout<<“The End” .} |
|
Answer» The multi line comment used in this program is wrong. So the correct code is as follows #include<iostream> using namespace std; int main ( ) { /* It is a simple program */ cout<< “Welcome to C++” cout<< “\nThe End” } |
|