

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


Read the following programs, find out the programming errors and correct them.
Question 1
// 5 errors #include
int main { cout << “My first name is:Ming”
endl cout << “My last name is: Zhang” << endl;
Question 2 // 5 errors
#include
Question 3 // 5 errors
int main( )
{int count = 0; cout <<“The initial value of count is”<<count<<endl; ++count; cout >>“count is now ”>> count >> endl; ++count, ++count; cout <<“count is now”<< count <<endl; return(0);}
Question 4
// 5 errors #inlude