What is the real difference between arrays and pointers?
Answer Posted / pravinash
array is collection of similar datatype. it is a static
memory allocation means we can not increment and decrement
the arry size once we allocated. and we can not increment
the base address, reassign address.
pointer is a dynamic memory allocation. we can allocate the
size as we want, assigning into another variable and base
address incrementation is allowed.
| Is This Answer Correct ? | 72 Yes | 9 No |
Post New Answer View All Answers
How does free() know explain how much memory to release?
When should we use pointers in a c program?
What is operator precedence?
How can a number be converted to a string?
What is strcmp in c?
Can a void pointer point to a function?
What are the advantage of c language?
What are the different types of objects used in c?
Explain the advantages of using macro in c language?
Why main is not a keyword in c?
.main() { char *p = "hello world!"; p[0] = 'H'; printf("%s",p); }
Explain what is the difference between a string copy (strcpy) and a memory copy (memcpy)? When should each be used?
the constant value in the case label is followed by a a) semicolon b) colon c) braces d) none of the above
What is const volatile variable in c?
What is the use of getchar() function?