In the following declaration of main, "int main(int argc,
char *argv[])", to what does argv[0] usually correspond?
1) The first argument passed into the program
2) The program name
3) You can't define main like that
Answer Posted / ram
The answer is the program name.
| Is This Answer Correct ? | 12 Yes | 0 No |
Post New Answer View All Answers
What is abstraction in oop with example?
What is object in oops?
What is object and class in oops?
What is persistence in oop?
What is the significance of classes in oop?
What is static modifier?
What is destructor in oop?
What are constructors in oop?
What is destructor example?
write knight tour problem which is present in datastructure
Following are the class specifications: class {int a}; class {int b}; Using friend funtion,calculate the max of two objects and display it.
What is abstraction in oops with example?
Is oop better than procedural?
Which is better struts or spring?
Question: Implement a base class Appointment and derived classes Onetime, Daily, Weekly, and Monthly. An appointment has a description (for example, “see the dentist”) and a date and time. Write a virtual function occurs_on(int year, int month, int day) that checks whether the appointment occurs on that date. For example, for a monthly appointment, you must check whether the day of the month matches. Then fill a vector of Appointment* with a mixture of appointments. Have the user enter a date and print out all appointments that happen on that date.