Question: Q 6 . Consider: typedef struct { int x; int y; } Point; Point p; Point * pp; Assign the coordinates ( 1 0 ,

Q6.
Consider:
typedef struct {
int x;
int y;
} Point;
Point p;
Point* pp;
Assign the coordinates (10,20) to point p.
Q7. For the preceding question, assign the address of p to pp.
Q8. Now assume that pp points to p. Use pp to assign the coordinates (30,40) to the struct pp points to.
Q9.
Multiple ways of processing vectors. Consider:
int vec[]={1,2,3,4,5};
int* pInt = vec;
int sum =0;
for (int i =0; i <5; i++, pInt++){
//???
}
For the missing line above, which choice is INCORRECT?

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Finance Questions!