>It's not compulsory to have default at the end.
i knw but its at the end of the switch in his program.so i replied tht break is not required.
>ok..but what's the purpose of the: int argc, char *argv[] inside the () of main???
argc specifies the number of command line arguments and the array argv[] contains those arguments. In Salem's program, he is printing depending on the number of arguments given by the user.