Re: knight Problem
barjesh kumar <[email protected]> Thu, 21 Oct 2004 23:55:33 -0700 (PDT)
| Newsgroups | gmane.comp.programming.cppug |
|---|---|
| Message-ID | <[email protected]> |
Hallo praveen Mam, Thanks for ur reply. Bye, Barjesh. praveen yadlapalli <[email protected]> wrote: Hai barjesh I can answer the second question. When a program is executed the operating system call the main function of the program. main is also like any other function and it returns a value to the operating system. if the program returns 0 it is an indication of successful execution of the program. if an error has occured in executing the program we can return another number other than 0. indicating an error has occured. This can clearly be seen in an unix environment after excuting your program check the value of exit status('echo $?') and find the return value of the latest program executed. your friend. praveen. On Mon, 27 Sep 2004 barjesh kumar wrote : >Hallo to All of you. I have one problem for you >people. >move one Knightt in the chess Board in such a way >that it goes through all the squares for one and only >one time. we developed this program in C and it takes >20 minutes in execution for the final result. >2ndly i would like to ask why mostly we write return >0; at the end of main.is it indication to operating >system regarding succesful execution of the main >function. >Have a nice time, >Barjesh. >--- Raghu kumar <[email protected]> wrote: >> Hi friend., >> i am really sorry to tell u friend >> that i don't have any knowledge or idea about >> plug-in's >> i am really sorry. >> >> I am a new programmer >> who has just learned how to program in c++. >> >> >> Your friend >> Raghu kumar >> >> >> >> >> __________________________________ >> Do you Yahoo!? >> New and Improved Yahoo! Mail - Send 10MB messages! >> >http://promotions.yahoo.com/new_mail >> >> > >_______________________________ >Do you Yahoo!? >Declare Yourself - Register online to vote today! >http://vote.yahoo.com >Yahoo! Groups Sponsor >ADVERTISEMENT >Yahoo! Groups Links >To visit your group on the web, go to: >http://groups.yahoo.com/group/cppug/ > > >To unsubscribe from this group, send an email to: >[email protected] > > >Your use of Yahoo! Groups is subject to the >Yahoo! Terms of Service >. > Yahoo! Groups SponsorADVERTISEMENT --------------------------------- Yahoo! Groups Links To visit your group on the web, go to: http://groups.yahoo.com/group/cppug/ To unsubscribe from this group, send an email to: [email protected] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. --------------------------------- Do you Yahoo!? vote.yahoo.com - Register online to vote today!