|
|
|
|
Pointers & Strings
An array and pointers are closely related and strings are also one dimensional array, strings too will be closely related to pointers. Many of the C library functions that work with strings use pointers.In the given below example, strchr() takes as arguments a sttring and a character to be searched for in that string. #include <stdio.h> |