What is the real difference between arrays and pointers?

Answer Posted / swetha.j.n

Array is a group of elements.But pointer is not a group of
elements.
Array refer to the data in memory location.But pointer
refer to the address in memory location.

Is This Answer Correct ?    21 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain what is wrong with this program statement? Void = 10;

761


What is multidimensional arrays

627


Define macros.

782


Write a factorial program using C.

642


Write a C program to accept a matrix of any size. Find the frequency count of each element in the matrix and positions in which they appear in the matrix

1512






What are examples of structures?

592


What does the characters “r” and “w” mean when writing programs that will make use of files?

851


How is a null pointer different from a dangling pointer?

555


Write a C++ program to generate 10 integer numbers between - 1000 and 1000, then store the summation of the odd positive numbers in variable call it sum_pos, then find the maximum digit in this variable regardless of its digits length.

1566


What is the best way to store flag values in a program?

578


Explain how do you use a pointer to a function?

639


What is volatile variable how do you declare it?

563


Explain what is the difference between text files and binary files?

613


How can you restore a redirected standard stream?

609


What is the use of bitwise operator?

685