can anyone help me in making char array?
for example if i declared:
char names[20];
and for example i want to enter 3 names (example joe, sarah, and arthur)
for that array and then display those names...how will i write it as a syntax or any declarations that i missed?...sorry for being a newbie,but answering my question will be a great help for my school assignment..
im expecting for the output to look like this:
joe
sarah
arthur
thank you.
for example if i declared:
char names[20];
and for example i want to enter 3 names (example joe, sarah, and arthur)
for that array and then display those names...how will i write it as a syntax or any declarations that i missed?...sorry for being a newbie,but answering my question will be a great help for my school assignment..
im expecting for the output to look like this:
joe
sarah
arthur
thank you.
Comment