C warning implicit declaration of function 'exit'

This is my warning.

implicit declaration of function 'exit'

How i can remove it.

i am using linux & gcc compiler.


Add:

#include <stdlib.h>

to the top of your program.


Do you have this preprocessor? If not, add it.

#include <stdlib.h>