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
Can i use “int” data type to store the value 32768? Why?
What does != Mean in c?
Is array name a pointer?
Explain what are multidimensional arrays?
Why is extern used in c?
What is gets() function?
Does c have enums?
how to create duplicate link list using C???
What is the purpose of the preprocessor directive error?
How are variables declared in c?
What is a program flowchart and explain how does it help in writing a program?
Explain is it better to use a pointer to navigate an array of values, or is it better to use a subscripted array name?
What is null pointer in c?
What is the purpose of the following code? Is there any problem with the code? void send(int count, short *to, short *from) { /* count > 0 assumed */ register n = (count + 7) / 8; switch (count % 8) { case 0: do { *to = *from++; case 7: *to = *from++; case 6: *to = *from++; case 5: *to = *from++; case 4: *to = *from++; case 3: *to = *from++; case 2: *to = *from++; case 1: *to = *from++; } while (--n > 0); } }
what is the syallabus of computer science students in group- 1?