what is difference between
char name[50]
and
char *name

How much time do you have?

http://www.daweidesigns.com/cgi-bin/pointers.php?page=3-0


One is a pointer, one is an array. That pointer might potentially point to an array or it might not. In some cases a pointer can be used as if it was an array and in some cases it most definitely cannot.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.