Question: there is another option for the question i could not put it in the image below is the fifth option i.e it displays '0' because

 there is another option for the question i could not put
there is another option for the question i could not put it in the image below is the fifth option i.e
it displays '0' because line 11 should actually display address, however, format specifier %5.2f is incorrect as it should be %p for address.

7 8 9 Fint main() { float y = 56; const float *ptr ptr++; printf("%5.2f" return 0; &y; 10 11 *ptr); 12 13 Which one of the following choices most correctly explains working of the a code? It displays 57 as the value is indirectly increased using pointer 'ptr'. It displays a garbage value because the pointer 'ptr' was not dereferenced line # 10. It displays O because it reinitializes 'y via pointer 'ptri It gives a syntax error as pointer 'ptr is declared as constant, yet it is incremented on line # 10

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!