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
When do you not use the keyword 'return' when defining a function a) Always b) Never c) When the function returns void d) dfd
Explain what does the function toupper() do?
How many levels of indirection in pointers can you have in a single declaration?
Can you think of a logic behind the game minesweeper.
Is c easier than java?
Are bit fields portable?
Suggesting that there can be 62 seconds in a minute?
Why flag is used in c?
please give me some tips for the placement in the TCS.
How can I automatically locate a programs configuration files in the same directory as the executable?
Why c is called object oriented language?
How will you declare an array of three function pointers where each function receives two ints and returns a float?
What is scanf_s in c?
Please send me WIPRO technical question to my mail ID.. its nisha_g28@yahoo.com please its urgent
What is the difference between near, far and huge pointers?