return

9 views
Skip to first unread message

Usman Farooq

unread,
May 12, 2013, 3:30:23 AM5/12/13
to cs1003-s...@googlegroups.com
Assalaam-o-Alikum,
Respected Sir & Madam,
                     Can i use exit(1) instead of return -1?.Please explain about exit(digit) and return digit.
Regards,
Muhammad Usman Farooq,

Sami Ullah Kashif

unread,
May 12, 2013, 6:24:00 AM5/12/13
to cs1003-s...@googlegroups.com
Yes in general the syntax of exit function is: exit(int n)

You can use any integer inside the exit function. Once again the difference is something that you don't need to worry about. You can use any integer inside the exit function.

Regards,
Sami
Reply all
Reply to author
Forward
0 new messages