Originally Posted by
nonoob
"single character array" is a bit confusing.
What? We all know what a character array is. "Single" in english means one -- as in, I would like a single potato chip. Who would be confused by that ("Well, maybe it means a kind of potato chip made from just one potato...")?
@unbrknchane: since a single character array is such a simple thing, start by writing a program which uses a character array and printf. This is a slight variation on "hello world", which you may be familiar with.
http://en.wikipedia.org/wiki/Hello_world_program
A complete working "hello world" written in C is available in the article. Modify it to use a character array instead of a string literal:
Code:
char hw_ray[]="hello world";
It's much easier if you post the snippets and we criticize