Wild pointer in c programming language.

Wild pointer:

A pointer in c which has not been initialized is known as wild pointer.


What will be output of following c program?

int main(){

int *ptr;


return 0;


Any address
Garbage value

Here ptr is wild pointer because it has not been initialized.

There is difference between the NULL pointer and wild pointer. Null pointer points the base address of segment while wild pointer doesn’t point any specific memory location.

3. File pointer:

To know about FILE pointer click here.

Generic pointer
Null pointer
Wild pointer
Dangling pointer
Near pointer
Far pointer
Graphics video memory
Text video memory
Huge pointer
Memory model in C
C tutorial


parry said...

file pointer is a pointer which store the address of file n we can perform operation like read write on this file file pointer is defined in header file stdio.h and its syntax is FILE*.

parry said...