Answer Posted / rabid manatee
#include <iostream>
using namespace std;
int main(int argc, char *argv[]) {
int n = 4;
if (argc == 2) {
n = atoi(argv[1]);
}
for(int i=n; i >= 0; i--) {
cout << i*2 + 1 <<endl;
}
}
| Is This Answer Correct ? | 3 Yes | 14 No |
Post New Answer View All Answers
Explain the use of virtual destructor?
What is the maximum combined length of command line arguments including the space between adjacent arguments?
What causes a runtime error c++?
Explain what happens when a pointer is deleted twice?
How do you print a string on the printer?
How would perform Pattern Matching in C++?
Explain rtti.
Why is c++ called oops?
What is the sequence of destruction of local objects?
How to tokenize a string in c++?
What is setfill c++?
What is bubble sort c++?
What is the difference between the functions rand(), random(), srand() and randomize()?
What is lambda expression c++?
What does iomanip mean in c++?