Professional Documents
Culture Documents
Slide7 Strings
Slide7 Strings
Jadavpur University
I scanf and gets do not detect when the array is full. scanf
can be made safer by using the conversion specification %ns
instead of %s, where n is an integer indicating the maximum
number of characters to be stored.
Accessing Characters in a String