Program to accept and display data for 1 object using pointer to object.
Are you looking for a detailed solution to a query regarding a program to accept and display data for 1 object using a pointer to object? Follow this thread to get an answer to the query from our experts in the field.
This question is asked for 04 marks and hence requires some explanation along with the program code. Please let me know the solution.
Q) Implement a program to declare a class city with data member's city name and state. Accept and display data for 1 object using a pointer to object.