In int main(int argc, char *argv[]) what is argv[0]
a) The first argument passed into the program
b) The program name
c) You can't define main like that
No Answer is Posted For this Question
Be the First to Post Answer
What is polymorphism and its type in c++?
How would you use qsort() function to sort an array of structures?
what are the iterator and generic algorithms.
What do nonglobal variables default to a) auto b) register c) static
What is friend class in c++ with example?
Explain the static storage classes in c++.
What is oop in c++?
Explain the scope resolution operator?
Can you write a function similar to printf()?
Design a program to input a date from user in the form day/month/year (e.g. 2/6/2000) and report whether it’s a valid date or not. The program should take account of leap years. You will need to know that a leap year is a year that is exactly divisible by 4, except that century years are only leap years if they are divisible by 400.
Explain container class.
In java a final class is a class that cannot be derived. How can you make a similar class in C++