Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How much memory does a pointer variable allocate?

memory pointer
0
Posted

How much memory does a pointer variable allocate?

0

7.5a: I have a function that is supposed to return a string, but when it returns to its caller, the returned string is garbage.

0

Only enough memory to hold the pointer itself, not any memory for the pointer to point to. 7.5a: I have a function that is supposed to return a string, but when it returns to its caller, the returned string is garbage. A: Make sure that the pointed-to memory is properly (i.e. not locally) allocated.

0
10

Only enough memory to hold the pointer itself, not any memory for the pointer to point to.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123