Saved Bookmarks
| 1. |
Anil typed the following C++ code and during compilation, he found three errors as follows: (i) Function strlen should have prototype (ii) Undefined symbol cout (iii) Undefined symbol endlOn asking, his teacher told him to include necessary header files in the code. Write the names of the header files, which Anil needs to include, for successful compilation and execution of the following code:Void main (){char Txt [ ] = "welcome";for (int c = 0; c<strlen(Txt); c++)Txt [c] = Txt [c] +1;cout<<Txt<<end1:} |
|
Answer» For strlen → For cout, end → |
|