int main (void)
{
int *p; /* uninitialized pointer */
*p = -1; /* writing to random memory */
return 0;
}
the purpose of pointer in c for saving the memory space.,and reduce the length and complexity of the program
Pointer is like variable address the members in memory shell
Pointer to Pointer is a double pointer, denoted by (**). Pointer stores the address of the variable and pointer to pointer stores the address of a pointer variable and syntax can be given as int **ptr2ptr;
i want to write a simple without using pointer or array c program which will print greatest number when i give 20 number .........How far have you gotten so far?
the address of variable (pointer) that contains array
An error in which a running program attempts to access memory not allocated to it and core dumps with a segmentation violation error. This is often caused by improper usage of pointers in the source code, dereferencing a null pointer, or (in C) inadvertently using a non-pointer variable as a pointer.
An error in which a running program attempts to access memory not allocated to it and core dumps with a segmentation violation error. This is often caused by improper usage of pointers in the source code, dereferencing a null pointer, or (in C) inadvertently using a non-pointer variable as a pointer.
It is a pointer that points to a member of a structure.
Increment or decrement the pointer by the required offset.
no
Pointer can be defined as variable that is used to store memory address , usually the location another variable in memory. Pointers provide a means through which memory location of a variable can be directly accessed.
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.