Computer Science, asked by sooryanathg, 7 months ago

. Read the structure definition given below and answer the following questions:

struct sample

{

int num;

char *str;

} *sptr;

a. Write C++ statements to dynamically allocate a location for sample type

data and store its address in sptr.

b. Write C++ statements to input data into the location pointed to by sptr.

c. Modify this structure into a self referential structure

Answers

Answered by eccaaaaaaa
1

Answer:

B

Explanation:

hahahaha

Similar questions