I am so confused about how to assign pointers to char arrays. If we have a charcter string stored in an array as
char s[10]="Name"
then can we define a pointer like char *x; x=s[0]; ?
and will this pointer point to the starting point of the array ?
if in the next statement is
cout<
If the syntax is not correct, please correct it and kindly explain.
Thanks
Read More...
No comments:
Post a Comment