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 doesnt long int work?
How do you view the path?
What is structure pointer in c?
What is the 'named constructor idiom'?
What is the role of && operator in a program code?
How can you pass an array to a function by value?
What does sizeof return c?
What is structure packing in c?
What is a ternary operator in c?
I came across some code that puts a (void) cast before each call to printf. Why?
How can I determine whether a machines byte order is big-endian or little-endian?
What does c mean in basketball?
a program that performs some preliminary processing in C, it acts upon certain directives that will affect how the compiler does its work a) compiler b) loader c) directive d) preprocessor
What is the use of sizeof () in c?
Explain what are run-time errors?