Alex Rivera | Logout

Difference between char a[]="string"; char *p="string";

Asked 2010-05-30T13:57:30.020
15

Possible Duplicates:
What is the difference between char s[] and char *s in C?

What is the difference between char a[]="string"; and char *p="string";?

c
Edit
Report

1 Answer

2

First declaration declares an array, while second - a pointer.

If you're interested in difference in some particular aspect, please clarify your question.

answered 2010-05-30T14:00:44.373

Your Answer