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 |
When should structures be passed by values or by references?
Differentiate abs() function from fabs() function.
Differentiate between #include<...> and #include '...'
What is false about the following A compound statement is a.A set of simple statments b.Demarcated on either side by curly brackets c.Can be used in place of simple statement d.A C function is not a compound statement.
Explain pointer. What are function pointers in C?
Tell us the difference between these two : #include"stdio.h" #include<stdio.h> define in detial.
How can I determine whether a machines byte order is big-endian or little-endian?
helllo sir give me some information of the basic information the c as printf ,scanf , %d ,%f and why is the main use of these.
how to sort two array of characters and make a new array of characters.
What is break statement?
if a person is buying coconuts of Rs10,and then sell that coconuts of Rs9,with the loss of one rupee.After that the person became a millaniore.how?
What are the types of unary operators?