Search found 1 match

by nishant
Fri Jul 29, 2005 8:49 am
Forum: C
Topic: Passing variable number of arguments to functions..
Replies: 6
Views: 8347

Passing variable number of arguments to functions..

Hi,

"main(int argc, char* argv[])"

When you invoke the main function from command line , it gets the total number of arguments passed in the variable argc . This approach doesnt work with user-defined functions.Is it possible in some other way to pass variable number of arguments to a function ...

Go to advanced search