C Programming - Complicated Declarations - Discussion
Discussion Forum : Complicated Declarations - General Questions (Q.No. 11)
11.
What do the following declaration signify?
char **argv;
Discussion:
6 comments Page 1 of 1.
Srinivas bandreddy said:
8 years ago
** means pointer to pointer.
For example **argv store on address of another char pointer (char *p) variable. So **argv is a pointer to pointer.
For example **argv store on address of another char pointer (char *p) variable. So **argv is a pointer to pointer.
Neel Purohit said:
9 years ago
@Neha.
** means pointer of pointer.
For example argv store on address 2002. So another pointer stores the address where argv is stored.
** means pointer of pointer.
For example argv store on address 2002. So another pointer stores the address where argv is stored.
Akshay said:
1 decade ago
@Neha.
** is a pointer.
** is a pointer.
Krati said:
1 decade ago
** represents chain of pointers. i.e a pointer ptr points to another pointer ptr1 that actually stores the address of some variable.
Hence ptr is represented as **ptr.
And ptr1 is represented as *ptr1.
Hence ptr is represented as **ptr.
And ptr1 is represented as *ptr1.
Neha said:
1 decade ago
Can someone tell what does the ** stands for?
Himanshu Goyal said:
1 decade ago
Answer [b] is correct because argv points to [any pointer xyz] that is also to char type.
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers