C Pointers are a type of variable used to store memory addresses of other variables. These pointers are typed…