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

Post New Answer

More C++ General Interview Questions

What is polymorphism and its type in c++?

0 Answers  


How would you use qsort() function to sort an array of structures?

0 Answers  


what are the iterator and generic algorithms.

0 Answers  


What do nonglobal variables default to a) auto b) register c) static

0 Answers  


What is friend class in c++ with example?

0 Answers  






Explain the static storage classes in c++.

0 Answers  


What is oop in c++?

0 Answers  


Explain the scope resolution operator?

2 Answers  


Can you write a function similar to printf()?

0 Answers  


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.

1 Answers  


Explain container class.

0 Answers  


In java a final class is a class that cannot be derived. How can you make a similar class in C++

1 Answers  


Categories