What is the real difference between arrays and pointers?

Answer Posted / shubham arora

1-through pointers we can access data directly while in array we have to traverse the whole array for accessing particular data.
2- due to above reason accessing through pointers is fast than
array.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How arrays can be passed to a user defined function

581


Explain what is a stream?

613


What is the use of sizeof () in c?

562


What is wrong with this statement? Myname = 'robin';

828


Why do we use main function?

644






Is c object oriented?

544


What is a loop?

559


Why is %d used in c?

569


write a program to display all prime numbers

1461


Q.1 write a program to create binary tree 1 to 16 numbers? Q.2 write a program to creat a binary search tree for the member that is given by user?

2061


Hello. How to write a C program to check and display president party like if i type in the console "biden" and hit enter the output shoud be : "biden is democrat" and if i type "trump" and hit enter the output shoud be: "trump is republican"

1584


What is a scope resolution operator in c?

756


using for loop sum 2 number of any 4 digit number in c language

1738


What is calloc in c?

667


What is the difference between array and structure in c?

574