Double (**) is used to denote the double pointer. As we know the pointer stores the address of variable, Double pointer stores the address of any pointer variable. Declaration : int **ptr2Ptr;
#define max2(a,b) (b>a?b:a) #define max3(a,b,c) (max2(a,max(b,c)))
Pointer in C are fun to programming.Pointers in C are variables which doesn't stores the value but points to the address where the value is stored.They are used for reference.
1. pointer to a constant means you can not change what the pointer points to 2. constant pointer means you can not change the pointer.
When we increment the pointer its value is increased by the length of the data type that it points to.
Because there is no way to define the divisors, the equations cannot be evaluated.
Pointer is a variable, A variable that stores the address of another variable. Size of a pointer is 2 bytes.
#define NULL ((void *)0) /* defined in <stddef.h> */ const char *mynullvar = NULL;
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.
Pointer Stars are stars that are used to pinpoint other areas in the sky, such as constellations.
A pointer in itself is not an object, because it is not an instance of a class. Of course you can define a class which has only one member, which is a pointer. class Pointer { public void *ptr; }; Pointer p, q, r;
to control the pointer
... are usable. void pointer (generic pointer) : a special type of pointer which point to some data of no specific types. void *p; null pointer : a special type of pointer which point nowhere. it is usually used to check if a pointer is pointing to a null or free the pointer during deallocation of memory in dynamic memory allocation; it is define by using the predefine constant NULL int *p=NULL; wild pointer : uninitialized pointer. it hold a garbage value. i.e it is not pointing to any memory location yet. dangling pointer: pointer pointing to a destroyed variable. it usually happen during dynamic memory allocation when the object is destroyed but not free and the pointer is still pointing to the destroy object.
The C language does not support references, that is, the C++ concept of creating an alias to a variable. You can create pointers and dereference them, or you can use the preprocessor's #define mechanism to use another name for a variable. Even in C++, however, you cannot create a pointer to a reference. If you try to, you will end up creating a pointer to the original value. This is because all a reference is is an automatically dereferenced pointer - a compiler shortcut, rather than a totally new feature. So the limitation of not being able to point at a reference isn't really too bad.
Increment or decrement the pointer by the required offset.
It is a pointer that points to a member of a structure.
no
the purpose of pointer in c for saving the memory space.,and reduce the length and complexity of the program