Question: Given: 1. int main(int argc, char *argv[ ]) 2. { 3. int array[ ]={100,200,300,400,500,600,700,800,900,1100}; 4. int *p,p1; 5. p=array; // p = &array[0] 6. p1=*p+100;

Given:

1. int main(int argc, char *argv[ ])

2. {

3. int array[ ]={100,200,300,400,500,600,700,800,900,1100};

4. int *p,p1;

5. p=array; // p = &array[0]

6. p1=*p+100;

7. printf("%d ",*p);

8. printf("%d ",*(p+3));

9. printf("%f ", *(p+3));

10. printf("%x ", *(p+3));

11. printf("%x ",*(p-5/2));

12. printf("%d ",p1+50);

13. return 0;

14. }

What are the differences between line 8, line 9, line 10?

Explain what is happening in line 12?

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 Databases Questions!