what is the use of pointers

Answers were Sorted based on User's Feedback



what is the use of pointers..

Answer / ramudu a

The main advantages of using pointers are
1.) Function cannot return more than one value. But when the same function can modify many pointer variables and function as if it is returning more than one variable.
2.) In the case of arrays, we can decide the size of the array at runtime by allocating the necessary space.
3.)Pointers allow you to dynamically request memory to store off information for use later.
4.)They allow you to create linked lists and other algorithmically oriented data structures.

Is This Answer Correct ?    1 Yes 0 No

what is the use of pointers..

Answer / pratyusha

continuous memory allocation

Is This Answer Correct ?    0 Yes 0 No

what is the use of pointers..

Answer / manju

It increases the speed of excecution when there is a need
for the usage of arrays....

Is This Answer Correct ?    0 Yes 0 No

what is the use of pointers..

Answer / sindhu

We may return more than one value at a time to any function.

Is This Answer Correct ?    0 Yes 0 No

what is the use of pointers..

Answer / venkat1435@yahoo.co.in

by using pointers
1)we can pass the function arguments to another function
2)it holds the address of another function
3)it acts as a call back function

Is This Answer Correct ?    0 Yes 0 No

what is the use of pointers..

Answer / vignesh1988i

1) pointers which points to a value indirectly through that variable containing that value..... so pointers are used for data security.

2) only by using pointers through functions we can return MORE THAN ONE VALUE AT A TIME.....

3) as above told execution will be faster.....

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Interview Questions

Explain what will the preprocessor do for a program?

0 Answers  


At a shop of marbles, packs of marbles are prepared. Packets are named A, B, C, D, E …….. All packets are kept in a VERTICAL SHELF in random order. Any numbers of packets with these names could be kept in that shelf as in this example: bottom of shelf ---> [AAAJKRDFDEWAAYFYYKK]-----Top of shelf. All these packets are to be loaded on cars. The cars are lined in order, so that the packet could be loaded on them. The cars are also named [A, B, C, D, E,………….]. Each Car will load the packet with the same alphabet. So, for example, car ‘A’ will load all the packets with name ‘A’. Each particular car will come at the loading point only once. The cars will come at the loading point in alphabetical order. So, car ‘B’ will come and take all the packets with name ‘B’ from the shelf, then car ‘C’ will come. No matter how deep in the shelf any packet ‘B’ is, all of the ‘B’ packets will be displaced before the ‘C’ car arrives. For that purpose, some additional shelves are provided. The packets which are after the packet B, are kept in those shelves. Any one of these shelves contains only packets, having the same name. For example, if any particular shelf is used and if a packet with name X is in it, then only the packets having names X will be kept in it. That shelf will look like [XXXXXXX]. If any shelf is used once, then it could be used again only if it is vacant. Packets from the initial shelf could be unloaded from top only. Write a program that finds the minimum total number of shelves, including the initial one required for this loading process.

0 Answers   Infosys,


1. main() { printf("%d",printf("HelloSoft")); } Output?

3 Answers   HCL,


What is the general form of function in c?

0 Answers  


main() { int i=0; while(+(+i--)!=0) i-=i++; printf(i); }

3 Answers  






write a program to find out number of on bits in a number?

17 Answers   Huawei, Microsoft,


post new interiew question and aptitude test papers

1 Answers  


what is the structure?

4 Answers   TCS,


Write a program to identify if a given binary tree is balanced or not.

0 Answers   JPMorgan Chase,


Why we use conio h in c?

0 Answers  


What should malloc(0) do? Return a null pointer or a pointer to 0 bytes?

0 Answers  


What is declaration and definition in c?

0 Answers  


Categories