When should we use pointers in a c program?



When should we use pointers in a c program?..

Answer / Nitesh Chaudhary

Pointers are used in C for various purposes such as dynamically allocating memory, implementing dynamic data structures, and creating functions that return multiple values.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Interview Questions

Which is better pointer or array?

1 Answers  


how to generate sparse matrix in c

3 Answers  


Can U write a C-program to print the size of a data type without using the sizeof() operator? Explain how it works inside ?

3 Answers   HCL, TCS,


What is volatile c?

1 Answers  


In C, What is the #line used for?

3 Answers  


How we can insert comments in a c program?

1 Answers  


What are integer variable, floating-point variable and character variable?

1 Answers  


What is hungarian notation? Is it worthwhile?

1 Answers  


What is difference between static and global variable in c?

1 Answers  


Explain the ternary tree?

1 Answers  


Write a program on swapping (100, 50)

1 Answers   BPL,


The number of bytes of storage occupied by short, int and long are a) 2, 2 and 4 b) 2, 4 and 4 c) 4, 4 and 4 d) none

1 Answers  


Categories