C Programming - Complicated Declarations - Discussion

Discussion Forum : Complicated Declarations - General Questions (Q.No. 11)
11.
What do the following declaration signify?
char **argv;
argv is a pointer to pointer.
argv is a pointer to a char pointer.
argv is a function pointer.
argv is a member of function pointer.
Answer: Option
Explanation:
No answer description is available. Let's discuss.
Discussion:
6 comments Page 1 of 1.

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.

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.

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.

Himanshu Goyal said:   1 decade ago
Answer [b] is correct because argv points to [any pointer xyz] that is also to char type.

Neha said:   1 decade ago
Can someone tell what does the ** stands for?

Akshay said:   1 decade ago
@Neha.

** is a pointer.

Post your comments here:

Your comments will be displayed after verification.