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.
Following is a question that was asked in the MSBTE (Maharashtra State Board of Technical Education, Mumbai) Diploma in Computer Engineering question paper for Winter 2018 examination.
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.
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.