Question: Given the following program, please specify all the possible bugs and state your reasons. #include . 2. I # include 4. int main()l int *p,

Given the following program, please specify all the possible bugs and state your reasons. Given the following program, please specify all the possible bugs and

#include . 2. I # include 4. int main()l int *p, i; char *string- "Henry"; int array[] - il, 2, 3, 4, 5;. char *ptr - NULL; - printf(" % c'', *ptr) ;.. 10- string[4] -'10'; p = array ; 15 16- pri ntf("%d " R [1]) ;.. 18- 19 free (p); return 0; *

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!