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 / mahi
my ans is 2.it prints the program name
Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
• What are the desirable attributes for memory managment?
What is balance factor?
What is object in oop?
Can we have inheritance without polymorphism?
How does polymorphism work?
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.
What does it mean when someone says I oop?
What is object in oops?
What is interface? When and where is it used?
What is inheritance write a program to show use of inheritance?
What is abstract class in oops?
How do you achieve polymorphism?
What are the 3 pillars of oop?
Which is better struts or spring?
What are the important components of cohesion?