By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,581 Members | 1,966 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,581 IT Pros & Developers. It's quick & easy.

exit from command line argument

P: 25
i tried to develop a program to include command line argument. if there is nothing than a.out (i use cc compiler), i want to finish the program. but i can't exit from the program. someone help me please, and please give me the code to finish the program without doing nothing except a.out at the command line argument
Sep 7 '06 #1
Share this Question
Share on Google+
1 Reply

Expert Mod 5K+
P: 8,916
You're not really making sense.

However to exit a program you have 2 choices

1. Return from the main function

2. Call the exit() function
Sep 7 '06 #2

Post your reply

Sign in to post your reply or Sign up for a free account.