What is the output of the following code?
#include <iostream>
using namespace std;
int main() {
cout << "GFG!"[0] <<" "<<"GFG!"[3] ;
return 0;
}
Error
G !
F !
None
This question is part of this quiz :
String Data Structure Quiz for Beginners