Tag: Quizzes

  • C++ Programming Questions and Answers – String – 1

    C++ Programming Questions and Answers – String – 1

    Q 1.What will be the output of the following C++ code? #include #include using namespace std;int main(int argc, char const *argv[]){char str[] = “Hello World”;cout< A. H B. e C. o D. Error Show Answer Answer:-A. H Explanation The program has no errors so and as str = “Hello World” and we are trying to…