Home / MCQ Bank / Computer
Computer Plus Plus Miscellaneous Difficulty: Medium

What will be the output of the following C++ code if the following arguments are executed on terminal? ===============program.cpp============= #include <iostream> using namespace std; int main(int argc, char const *argv[]) { for(int i=0;i<argc;i++) cout<<argv[i]<<"\n"; } ======================================= ================commands=============== $ g++ program.cpp -o output $ ./output Hello World =======================================

Select the correct option to test your answer:

More Computer Questions

If a denormalization situation exists with a many-to-many or associative binary relationship, which of the following is true? Match the following domain name extensions with their respective definitions a. .gov 1. Government agencies b. .org 2. Network organizations c. .edu 3. Non-Profit organizations d. .net 4. Educational organizations The Allow ________ property controls whether new records can be added through the form. What will be the output of the following PHP code? <?php echo (checkdate( 4,31,2010 ) ? 'Valid' : 'Invalid' ) ; ?> How is a while loop different from a for loop in R?