0

Is memory allocated for ptr variable in the given case?

struct str{ char *ptr; }; struct str s,*sp; sp=&s; Can I write value into the ptr using sp from user input? Is memory allocated for the ptr?

14th Sep 2020, 4:32 PM
rajshekhar y dodamani
rajshekhar y dodamani - avatar
1 Answer