How pointer is different from array?



How pointer is different from array?..

Answer / Omdutt

A pointer stores the memory address of a variable, while an array is a collection of elements of the same data type with a contiguous block of memory. Pointers are variables that hold memory addresses and can point to any data type, whereas arrays have a fixed size and type.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Interview Questions

Which of the following are valid "include" formats? A)#include and #include[file.h] B)#include (file.h) and #include C)#include [file.h] and #include "file.h" D)#include <file.h> and #include "file.h"

15 Answers   Accenture,


how can i access hard disk address(physical address)? are we access hard disk by using far,near or huge pointer? if yes then please explain.....

1 Answers  


write a own function for strstr

1 Answers   LG Soft,


difference between Low, Middle, High Level languages in c ?

1 Answers   Bosch, Infosys,


Write a program to print prime nums from 1-20 using c programing?

13 Answers   IBM,


in case any function return float value we must declare a) the function must be declared as 'float' in main() as well b) the function automatically returned float values c) function before declared 'float' keyword d) all the above

1 Answers  


what is the return type of printf

3 Answers  


how to get the starting address of file stored in harddisk through 'C'program.

2 Answers   Siemens,


get any number as input except 1 and the output will be 1.without using operators,expressions,array,structure.don't print 1 in printf statement

3 Answers  


What is volatile variable in c with example?

1 Answers  


What is restrict keyword in c?

1 Answers  


the format specified for hexa decimal is a.%d b.%o c.%x d.%u

7 Answers   TCS,


Categories