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 variables are declared in c?
What is a stream water?
difference between object file and executable file
How can you draw circles in C?
A text file that contains declarations used by a group of functions,programs,or users a) executable file b) header file c) obj file d) .cfile
Explain the binary height balanced tree?
How do you sort filenames in a directory?
Explain how do you determine a file’s attributes?
What does *p++ do? What does it point to?
What is the difference between malloc calloc and realloc in c?
What are the advantages and disadvantages of pointers?
Write a code to determine the total number of stops an elevator would take to serve N number of people.
Why use int main instead of void main?
What is %g in c?
Is c a great language, or what?