Saved Bookmarks
| 1. |
Consider the following code int main() {cout<<“welcome to C++”; } After you compile this program there is an error called prototype error. Why it is happened? Explain. |
|
Answer» Here we used the output operator cout <<. It is used to display a message “welcome to C++” to use this operator the corresponding header file <iostream> must be included. We didn’t included the header file hence the error. |
|