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
What does *p++ do? What does it point to?
What is the role of this pointer?
How main function is called in c?
What is advantage of pointer in c?
What does the message "automatic aggregate intialization is an ansi feature" mean?
How was c created?
Why doesnt the call scanf work?
Explain how do you search data in a data file using random access method?
what is event driven software and what is procedural driven software?
What is the purpose of main( ) in c language?
What do you mean by dynamic memory allocation in c?
In C language, the variables NAME, name, and Name are all the same. TRUE or FALSE?
Is struct oop?
Write a program to display all the prime nos from 1 to 1000000, your code should not take time more than a minute to display all the nos.
How can you check to see whether a symbol is defined?