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 about Garbage Collector?
List down the guideline that should be followed while using friend function.
How much do coding jobs pay?
What character terminates all character array strings a) b) . c) END
Distinguish between new and malloc and delete and free().
How many standards of c++ are there?
What are namespaces in c++?
What is :: operator in c++?
What do you mean by a template?
What is the use of c++ programming language in real life?
What is the difference between structures and unions?
What will the line of code below print out and why?
Differentiate between declaration and definition.
How do you find out if a linked-list has an end? (I.e. The list is not a cycle)
Mention the ways in which parameterized can be invoked. Give an example of each.