Use array instead of pointer; remove command-line arguments