frank wrote:irfanhb7 i bet ur on windows and that the cmd prompt just blinks right
well u can use getch to have it stop till u press a key
but that has nothing to do with return, u still need return
You're right, but as stated on the OP, no discussion about Windows-related stuff, so please keep this clean.
ASKidwai wrote:Thanks for the clarification but this code works with GCC but won't work with CC.
Quite strange. Use
gcc then.
ASKidwai wrote:EDIT: Don't you have to put
return 0;
in a parenthesis like this
return(0);
Nope, you don't have to. You can do it if you like it better, but it's not mandatory.