03-08-2013, 01:46 PM
Well you can just pass by show(n,5). The array name is a pointer that points to the base address of the memory location. Hence no need to declare a pointer to do it. Makes the program inefficient. N if this is C then getch() does not work... If your IDE allows it i would rather suggest you to use Notepad++ n along with it use the gcc compiler... And ya try not to use pointers unnecessarily... It will just complicate matters....