why we use pointer in c

Answers were Sorted based on User's Feedback



why we use pointer in c..

Answer / aravind

To pass the actual arguments by address instead by calling
by reference in function.

Is This Answer Correct ?    27 Yes 2 No

why we use pointer in c..

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

why we use pointer in c..

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

why we use pointer in c..

Answer / ram

reference to the address of the variable

Is This Answer Correct ?    11 Yes 0 No

why we use pointer in c..

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

why we use pointer in c..

Answer / deena

to indicate the address of variable

Is This Answer Correct ?    0 Yes 0 No

why we use pointer in c..

Answer / 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

More C Interview Questions

What is the best way of making my program efficient?

0 Answers  


What is #include cctype?

0 Answers  


find a number whether it is even or odd without using any control structures and relational operators?

22 Answers   Microsoft, Shashank Private Limited,


what is a function method?give example?

0 Answers  


why ordinary variable store the later value not the initial

1 Answers  






Explain do array subscripts always start with zero?

0 Answers  


Difference Between embedded software and soft ware?

1 Answers   Bosch,


write a program to convert a expression in polish notation(postfix) to inline(normal) something like make 723+* (2+3) x 7 (not sure) just check out its mainly printing expression in postfix form to infix.

0 Answers   Lovely Professional University,


1. Duplicate the even numbers. -1 Sample I/O Array1:- 4,2,24,3,22 Updated Array:- 4,4,2,2,24,24,3,22,22 2. Reverse the array in a region - 1 Sample I/O Array1:- 4,2,24,3,22,41,21 Enter Region:- 2,5 Update Array:-4,41,22,3,24,2,21 3. Store first the even digits in an array and then odd digits in same array -2 Sample I/O Array1:- 4,2,24,3,22,41,21 Array 2:- 4,2,2,4,2,2,4,2,3,1,1 4. Store the count of the digits in all numbers in an array and print the count. -2 Sample I/O Array1:- 4,2,9,3,7,41,28 Array 2:- 0,1,1,1,2,0,0,1,1,1 1-1;2-1;3-1;4-2;7-1;8-1;9-1 5. Store all palindrome numbers in to another array -2 Sample I/O Array1:- 4,22,9,313,7,141,28 Array 2:- 4,22,9,313,141 6. Arrange the array in such a way that odd numbers come first and then even numbers -1 Sample I/O Array1:- 4,22,9,313,7,141,28 Update Array1:- 9,313,7,141,4,22,28 7. Store into another array by inserting it in the right place - 2 Sample I/O Array1:- 4,22,9,313,7,141,28 Array2:- 4 /4,22 /4,9,22 /4,9,22 ,313 /4,7,9,22 ,313 /4,7,9,22 ,141,313 / 4,7,9,22,28 ,141,313 8. Merge two sorted arrays in a sorted fashion - 3 Sample I/O Array 1:- 3,6,7,9,11,16 Array 2:- 1,2,5,7,20 Array 3:- 1,2,3,5,6,7,9,11,16,20 9. Upadte the array so that an array element is followed by its revere - 1 Sample I/O Array 1:- 13,63,74,9,11,16 Updated Array 1:- 13,31,63,36,74,47,9,9,11,11,16,16 10.Spread the digits of the array in the same array. -1 Sample I/O Array 1:- 13,63,74,9,11,16 Updated Array 1:-1,3,6,3,74,9,1,1,1,6 11.Shift the boundary of array to have only 2 digit numbers. Sample I/O Array 1:- 139,643,74,9,101,126 Updated Array 1:- 13,96,43,74,91,11,26 12.Print the largest occuring digit in an array of N numbers. Sample I/O Array 1:- 13,63,74,9,11,16 1 occurs most.

2 Answers   Intel,


Why is it important to memset a variable, immediately after allocating memory to it ?

0 Answers  


What does 1f stand for?

0 Answers  


What are the types of bitwise operator?

0 Answers  


Categories