why we use pointer in c

Answer Posted / manjulatha

use of pointers makes the code more efficient and compact.
1.to acess array elements
2. to return more than one value to a function.
3. to acess dynamically allocated memory.
4. to implement data structures like linked lists,trees.

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

An expression to whose value an operater is applied a) operand b) variable c) constant d) all of the above

658


i have to apply for the rbi for the post of officers. i need to know abt the entrance questions whether it may be aps or techinical....

1525


how to execute a program using if else condition and the output should enter number and the number is odd only...

1660


What are structure types in C?

671


How can I pad a string to a known length?

612






What is time complexity c?

568


Linked list is a Linear or non linear explain if linear how it working as a non linear data structures

1764


What is wrong in this statement? scanf(ā€œ%dā€,whatnumber);

730


praagnovation

1780


What is the use of getchar functions?

678


What does static variable mean in c?

653


where are auto variables stored? What are the characteristics of an auto variable?

595


How will you print TATA alone from TATA POWER using string copy and concate commands in C?

920


if p is a string contained in a string?

1406


What is data structure in c and its types?

596