What is the real difference between arrays and pointers?
Answer Posted / pushpanjali panda
Arrays automatically allocate space, but can't be relocated
or resized. Pointers must be explicitly assigned to point
to allocated space (perhaps using malloc), but can be
reassigned (i.e. pointed at different objects) at will, and
have many other uses besides serving as the base of blocks
of memory.
| Is This Answer Correct ? | 56 Yes | 9 No |
Post New Answer View All Answers
Why we not create function inside function.
What are the types of data files?
Is null always defined as 0(zero)?
Hello. How to write a C program to check and display president party like if i type in the console "biden" and hit enter the output shoud be : "biden is democrat" and if i type "trump" and hit enter the output shoud be: "trump is republican"
Explain is it better to bitshift a value than to multiply by 2?
What is stack in c?
What is const and volatile in c?
Tell us the use of fflush() function in c language?
Do you know the use of fflush() function?
a way in which a pointer stores the address of a pointer which stores the value of the target value a) reference b) allocation c) multiple indirection d) none
What is the sizeof () operator?
Which driver is a pure java driver
Is c easy to learn?
What is a void pointer in c?
Explain a pre-processor and its advantages.