What is the difference between array and pointer?



What is the difference between array and pointer?..

Answer / Huma Parveen

An array is a collection of elements of the same data type, whereas a pointer is a variable that stores the memory address of another variable. An array can be accessed using its index, while a pointer needs to be dereferenced to access the stored value. However, both arrays and pointers can store and manipulate memory.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Interview Questions

Write a program to reverse a string.

1 Answers   Global Logic, iNautix, TCS, Wipro,


Explain the difference between strcpy() and memcpy() function?

1 Answers  


What does %c mean in c?

1 Answers  


Do you know the use of 'auto' keyword?

1 Answers  


What is printf () in c?

1 Answers  


Explain how can I manipulate strings of multibyte characters?

1 Answers  


who is the father of C Language?

20 Answers   CTS, UST,


What is infinite loop?

1 Answers  


what are the stages of compilation

1 Answers   Bosch,


Is fortran still used today?

1 Answers  


Write a C program to multiply tho numbers without using arithmetic operator (+, -, *, /).

1 Answers  


What is #pragma directive?how it is used in the program? what is its advantages and disadvantages?

2 Answers  


Categories