Question du test C++

Écrire un programme C++ qui affiche 3 X 3 = 1

Difficile

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?

Auteur: Abha AgrawaStatut : PubliéeQuestion passée 420 fois
Modifier
-1
Évaluations de la communauté
developer avatar
Obsolète
ez
19/12/2023
bad c++, not in standars anymore to use these kind of syntax.