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


Please Help Members By Posting Answers For Below Questions

• What are the desirable attributes for memory managment?

1734


What is balance factor?

595


What is object in oop?

697


Can we have inheritance without polymorphism?

623


How does polymorphism work?

643






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.

647


What does it mean when someone says I oop?

595


What is object in oops?

621


What is interface? When and where is it used?

1669


What is inheritance write a program to show use of inheritance?

621


What is abstract class in oops?

606


How do you achieve polymorphism?

622


What are the 3 pillars of oop?

626


Which is better struts or spring?

627


What are the important components of cohesion?

561