0

How can i save several names in C ?

I mean.. suppose I need to save name of my friends..but using array for that like this char name[10] will enable to save only one name right ? how to save more names moreover I need to access each position of letters of any particular name . C /C++ languages please

9th Jul 2018, 6:20 PM
Jitumani Sarmah
Jitumani Sarmah - avatar
3 odpowiedzi
+ 3
use an array of strings (or a matrix of characters) if you need to use C
9th Jul 2018, 7:26 PM
hinanawi
hinanawi - avatar
+ 2
Use vectors.
9th Jul 2018, 6:26 PM
B K
0
okay thanks
9th Jul 2018, 6:27 PM
Jitumani Sarmah
Jitumani Sarmah - avatar