Question from the C++ test

Write a C++ program that prints 3 X 3 = 1

Hard

Following code is compiled to executable my ‘myprog’

int main(int argc, char **argv)
{
std::cout << argc - 1 << " X " << strlen(*(argv+1) + 2) <<  " = " <<  *(*(argv+1)+3);
std::cout<<std::endl;
return 0;
}

What would be the output if the following command is given to the operating system myprog C++11 is easy?

Author: Abha AgrawaStatus: PublishedQuestion passed 420 times
Edit
-1
Community Evaluations
developer avatar
Obsolete
ez
19/12/2023
bad c++, not in standars anymore to use these kind of syntax.