answersLogoWhite

0

A double pointer in C or C++ ...

int ** ppi;

... simply means that ppi is a pointer that points to a pointer that points to an int.

When defining function-parameters, another way of declaring this is ...

int * ppi[];

... which means that ppi is a pointer to an array of pointers that each point to an int, which happens to have the exact same meaning, but it is more telling in terms of what the usefulness of such a double pointer might have.

Think of main() ...

int main (int agrc, char ** argv);

int main (int argc, char * argv[]);

... the two forms have exactly the same meaning, but the second form more clearly says what the design paradigm is, that argv is a pointer to an array of pointers that each point to an array of char, i.e. the arguments of the program's invocation.

User Avatar

Wiki User

14y ago

What else can I help you with?

Related Questions

What pointer type will you use to implement a heterogeneous linked list in c?

void pointer


Which pointer do you use to resize a chart?

is C or D


Which pointer do you use to resize a chart on excel?

C


WHAT IS POINTER TO POINTER IN C POINTER?

Pointer in C is Memory Reference. It stores memory address of any variable, constant, function or something you later use in your programming. Pointer basically used to ease the referencing of variables and others or in polymorphism and inheritance.


What are the applications of double pointer in c?

insert or delete values both side.so use double pointer


When would you use a pointer and a reference variable?

pointer: to access data by address reference: there is no reference in C language


What is the use of null pointer?

Pointer is a variable that stores address of a variable . A NULL Pointer a pointer that doesn't point to anything, it is a literal zero .Some people ,notably C++ programmers, prefer to use 0 rather than NULL.


What is a ponters in c-programming?

with the help of pointers we able to store the memory location of any variable. In c the pointer variable is use to store the memory location of any variable. The pointer variable is define as a simple variable but in pointer variable use a special "*" character at the left most side of name of pointer variable. If any variable name have * it means it is a pointer variable it hold the memory location of variable.


What is pointer and use of pointer?

A pointer looks a bit like a stick. I use it to point at something. Read your text book, read C tutorials on the web and if you still cannot answer the question consider floor sweeping or basket weaving as a vocation.


How can you offset a pointer in C?

Increment or decrement the pointer by the required offset.


What is pointer to a member in objective c?

It is a pointer that points to a member of a structure.


Pointer arithemetic in C?

no