FirstNaukri
Home Search Jobs Govt JobsNew Resume Makernew Career Guidance Ask n Answer Student Ambassadors

Register|Login

  Ask n Answer
  Ask a Question
0 out of 300 characters

QUESTION
what are the arquements of main function
By SIVARANJANI (Beginner)  8 years ago   21 views
 
 Your Answer
0 out of 1250 character
 
 
 
Share |
Report Abuse
 
 
 
 
ANSWERS (2)
 
 
 
 
For those writing programs which will run in a hosted environment, arguments to main provide a useful opportunity to give parameters to programs. Typically, this facility is used to direct the way the program goes about its task. It's particularly common to provide file names to a program through its arguments.
The declaration of main looks like this:
int main(int argc, char *argv[]);
 
 
 
Know a better answer? Click here to post.
 
 
Hi Siva, thanks for posting your query! I would like to bring to your notice that this forum is limited for career related queries, kindly post you technical queries in relevant portals.
 
 
 
Know a better answer? Click here to post.
 
 
 
 
 

Ask & Answer
Panel of Experts

 
 
 
 
 
All rights reserved © 2022 Info Edge (India) Ltd.