What is the difference between char a[] = "string"; and
char *p = "string"; ?
Answer Posted / man
a[] = "string"; is constant pointer to constant string
char *p = "string"; is pointer to constant string
| Is This Answer Correct ? | 4 Yes | 6 No |
Post New Answer View All Answers
Why is c platform dependent?
What is the value of h?
What is the use of extern in c?
How many levels of pointers have?
What is maximum size of array in c?
Write an efficient algo and C code to shuffle a pack of cards.. this one was a feedback process until we came up with one with no extra storage.
How can I avoid the abort, retry, fail messages?
What is the use of pointers in C?
Can main () be called recursively?
provide an example of the Group by clause, when would you use this clause
Write a program to print fibonacci series without using recursion?
What are header files in c programming?
How do I determine whether a character is numeric, alphabetic, and so on?
Can I use base-2 constants (something like 0b101010)? Is there a printf format for binary?
What is the data segment that is followed by c?