why we use pointer in c
Answers were Sorted based on User's Feedback
Answer / aravind
To pass the actual arguments by address instead by calling
by reference in function.
| Is This Answer Correct ? | 27 Yes | 2 No |
Answer / srinivas
the speed of execution will be increased because we
accessing address of the variable rather than variables
| Is This Answer Correct ? | 15 Yes | 1 No |
Answer / srinivash
to store the address of a variable which s effective in
fuction calling by call by reference r call by address method
| Is This Answer Correct ? | 14 Yes | 1 No |
Answer / nipa
using pointer some facility is there
1.. we reduce length and complexity of a program
2.. increase speed of execution of program
3.. it can capable to handling data table
4.. to access variable which is defined outside the function
5 .. handle character string
| Is This Answer Correct ? | 4 Yes | 2 No |
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 |
int array[]={1,2,3,4,5,6,7,8}; #define SIZE (sizeof(array)/sizeof(int)) main() { if(-1<=SIZE) printf("1"); else printf("2"); }
What is string in c language?
what is the differnce between AF_INET and PF_INET?
5 Answers Systems Plus, Wipro,
What is a stream in c programming?
Where local variables are stored in c?
Are c and c++ the same?
What are high level languages like C and FORTRAN also known as?
LOGIC OF Bodmas?
What is the need of structure in c?
Write a c program to find, no of occurance of a given word in a file. The word is case sensitive.
how to convert an char array to decimal array
what is pointer?