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 / sanish joseph
No guys the ans s 2
it prints d program name:
arguments counts only from 1 nd nt 4m 0
| Is This Answer Correct ? | 15 Yes | 0 No |
Post New Answer View All Answers
Following are the class specifications: class {int a}; class {int b}; Using friend funtion,calculate the max of two objects and display it.
What are properties in oop?
What is object-oriented programming? Webopedia definition
What does I oop mean?
What is a superclass in oop?
What is encapsulation in oops?
What is class and example?
They started with the brief introduction followed by few basic C++ questions on polumorphism, inheritance and then virtual functions. What is polymorphims? How you will access polymorphic functions in C? How virtual function mechanism works?
What is the difference between inheritance and polymorphism?
What is abstraction and encapsulation?
How is polymorphism achieved?
design a c++ class for the chess board,provide a c++ class definition for such class(only class definition is required)
2. Give the different notations for the class.\
Write a program to sort the number with different sorts in one program ??
IS IT NECESSARY TO INITIALIZE VARIABLE? WHAT IF THE INSTANCE VARIABLE IS DECLARED final ? IS IT NECESSARY TO INITIALIZE THE final VARIABLE AT THE TIME OF THEIR DECLARATION?