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 / zubeir

the answer is 1st choice.

Is This Answer Correct ?    8 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the point of polymorphism?

674


Can we override main method?

688


String = "C++ is an object oriented programming language.An imp feature of oops is classes and objects".Write a pgm to count the repeated words from this scenario?

2041


What is the diamond problem in inheritance?

675


Why do pointers exist?

759






Why interface is used?

645


Can main method override?

666


What are the features of oop?

734


Will I be able to get a picture in D drive to the c++ program? If so, help me out?

1752


What is coupling in oop?

691


Describe these concepts: Polymorphism, Inheritance and Abstraction.

706


What are two types of polymorphism?

695


What is abstraction in oops with example?

874


#include #include #include #include void select(char *items, int count); int main(void) { char s[255]; printf("Enter a string:"); gets(s); select(s, strlen(s)); printf("The sorted string is: %s.\n", s); getch(); return 0; } void select(char *items, int count) { register int a, b, c; int exchange; char t; for(a = 0; a < count-1; ++a) { exchange = 0; c = a; t = items[ a ]; for(b = a + 1; b < count; ++b) { if(items[ b ] < t) { c = b; t = items[ b ]; exchange = 1; } } if(exchange) { items[ c ] = items[ a ]; items[ a ] = t; } } } design an algorithm for Selection Sort

2169


What do you mean by variable?

668