Problem Statement - Required header files
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 endl
On 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<<endl; }
Solution
CSKC| Created: 5-Dec-2018 | Updated: 14-Sep-2019|CBSE12A-2017