Please see following source code written in C++. Can you make the code print “Hello World!” by providing it with an input string? You are NOT allowed to modify the source code. Compile the code with g++. Submit your input string and the screenshot proving that the code prints “Hello World!”.
#include <iostream>
#include <cstdio>
using namespace std;
char *p;
void f1() {
  char str[8];
  p = str;
  cout << "Please enter a string:";
  while (!cin.eof()) {
    cin.get(*p);
    p++;
  }
  cout << "The string you entered is:" << str << endl;
}
void f2()
{
  cout << "Hello World!\n";
}
int main(){ 
  cout << sizeof(char*) << endl; 
 cout << (void*) f2 << endl; 
 f1();
  return 0;
}
Note:- How to get Hello World! out put without editing this code Please help me
 
    