What is the difference between char a[] = "string"; and
char *p = "string"; ?
Answer Posted / singamsa
we can not access a++ or a-- on array but we can do that in
pointers
array, address is constanct for that string, pointer is not
like that
| Is This Answer Correct ? | 43 Yes | 22 No |
Post New Answer View All Answers
How can you determine the maximum value that a numeric variable can hold?
If one class contains another class as a member, in what order are the two class constructors called a) Constructor for the member class is called first b) Constructor for the member class is called second c) Only one of the constructors is called d) all of the above
What is the difference between functions getch() and getche()?
Explain the difference between #include "..." And #include <...> In c?
HOW TO SOLVE A NUMERICAL OF LRU IN OS ??????
Why is not a pointer null after calling free? How unsafe is it to use (assign, compare) a pointer value after it is been freed?
What does the error message "DGROUP exceeds 64K" mean?
What is the best way of making my program efficient?
Why c is called top down?
pierrot's divisor program using c or c++ code
State two uses of pointers in C?
Is there a way to have non-constant case labels (i.e. Ranges or arbitrary expressions)?
Are the outer parentheses in return statements really optional?
What is a void pointer? When is a void pointer used?
Write a program to print factorial of given number without using recursion?