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
Similar QuestionsMore questions about C++
2
C++ is a general-purpose programming language. It was developed in the 1970s by Bjarne Stroustrup at Bell Labs.2
Write a C++ function that returns the sum of two integers.1
What is the purpose of a static method in C++?1
What is the output of the following C++ code?1
Write a C++ program that creates an array of 10 Person objects.