Is memory allocated for ptr variable in the given case? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
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
0 Answers