Question: Consider the following structure declaration: struct point { char c; int x; int y; }; How to initialize the point H (3, 4) and display
Consider the following structure declaration: struct point { char c; int x; int y; }; How to initialize the point H (3, 4) and display it at: coordinates of H are i and 4 passing the argument by value? void display (point & p) {cout int main() { point s; s.c = 'M'; s.x = 3; s.y = 4; display(s); system ("pause"); return theta;} void display (point middot k) { cout int main() { point s; s.c = 'M'; s.x - 3; s.y = 4; display(&s); system("pause"); return theta;}
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
