Pointer to Pointer, Pointer vs Array

TL;DR
This video explains the concept of pointer to pointer, its implementation, and the differences between a pointer and a pointer to pointer.
Transcript
hello friends in this video we are going to be about the pointer to pointer how we can perform different operations as well as what is the difference between pointer versus Eddie now we'll see the brief about pointer to pointer addition of a pointer very even stole in a some other variable is called as pointer to pointer variable or pointer within ... Read More
Key Insights
- ✋ Pointer to pointer enables a higher level of indirection for accessing values in memory.
- ⏫ Declaring a pointer to a pointer involves using the double asterisk notation.
- ♿ Pointer to pointer variables can be used to reference other pointers, providing flexibility in memory access.
- 💦 When working with arrays, pointer to pointer can be useful in certain scenarios.
- ⚾ The compiler treats the base address of a pointer to a character as constant, restricting modifications to its value.
- ❓ The size of a pointer to a pointer is determined by the size of the address, while the size of an array is determined by the size of its elements.
- 👻 Pointers to pointers can be used to pass values by reference, allowing for modifications in the calling code to affect the original value.
Install to Summarize YouTube Videos and Get Transcripts
Explore YouTube Video Summarizer or Get YouTube Transcript Extractor
Questions & Answers
Q: What is a pointer to pointer?
A pointer to pointer is a variable that stores the address of another pointer. It provides an additional level of indirection, allowing indirect access to a value stored in memory.
Q: How do you declare a pointer to pointer in C?
To declare a pointer to pointer in C, you use the double asterisk notation. For example, int** ptr; declares a pointer to pointer of type int.
Q: What is the difference between a pointer and a pointer to pointer?
The main difference is the level of indirection. A pointer points directly to a value in memory, while a pointer to pointer points to the address of another pointer, which ultimately points to the value.
Q: Can you explain the example of increasing the value of Eddie and the error it causes?
Eddie is a pointer to a character and its base address is constant. When trying to increase its value, a compiler error occurs because the compiler assumes the base address is fixed and cannot be changed.
Summary & Key Takeaways
-
The video provides an explanation of pointer to pointer, which involves storing the value of a variable in a pointer that points to another pointer.
-
It demonstrates how to declare a pointer to pointer variable and perform operations on it programmatically.
-
The speaker showcases examples of pointer to pointer usage and explains how to obtain the same values through different methods.
Read in Other Languages (beta)
Share This Summary 📚
Summarize YouTube Videos and Get Video Transcripts with 1-Click
Try YouTube Summary with ChatGPT & Claude or YouTube Transcript Generator
Explore More Summaries from Ekeeda 📚






Summarize YouTube Videos and Get Video Transcripts with 1-Click
Try YouTube Summary with ChatGPT & Claude or YouTube Transcript Generator