?
What will be the output of the following C++ code?
What will be the output of the following C++ code?
#include <iostream>
#include <string>
using namespace std;
int main(int argc, char const *argv[])
{
char str[] = "Hello World";
cout<<str[0];
return 0;
}
#include <iostream>
#include <string>
using namespace std;
int main(int argc, char const *argv[])
{
char str[] = "Hello World";
cout<<str[0];
return 0;
}
Join the Discussion
Login to post a comment or share your explanation.
Login