-2

I have checked a lot of sources, but I didn't understand what's the difference between single pointer and double pointers exactly, like when I use *string, I can fill it with many strings, and when I use **string, I can do the same thing.

Can any one give me a simple example that could make me understand ?, and how can I use malloc for both of them?.

  • You should include some example code. Your description is a bit unclear to me at least. – hyde Jan 08 '19 at 23:50

1 Answers1

0

** is a pointer to an existing pointer * I would review this link for a detailed explanation How do pointer to pointers work in C?

For malloc, there are plenty of examples on this site

Jman
  • 187
  • 1
  • 3
  • 12