String | Data Structure Quiz for Beginners | Question 12

Last Updated :
Discuss
Comments

What is the output of the following code?

C++
#include <iostream>
using namespace std;

int main() {

    cout << "GFG!"[0] <<" "<<"GFG!"[3] ;
    return 0;
}

Error

G !

F !

None

Share your thoughts in the comments