Hi The program given below runs well does the required but prints on output screen Null pointer assignment while exiting from main .........
Separate names with a comma.