Why are pointers used?



Why are pointers used?..

Answer / Durg Singh

Pointers are used in C++ to access and manipulate the memory directly, pass functions as arguments, and create dynamic data structures.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C++ General Interview Questions

What is the output of printf("%d")?

58 Answers   CTS, HCL, Infosys, TCS, Winit, Wipro,


What are the differences between public, private, and protected access?

12 Answers   IBM, Oracle, Wipro,


What relational operators if statements in c++?

1 Answers  


What is atoi in c++?

1 Answers  


What is c++ namespace?

1 Answers  


Why for local variables the memory required to hold the variable is allocated from the program stack and for new its allocated from the heap?

1 Answers  


What are the different types of polymorphism in c++?

1 Answers  


Reads in the size of a square from the screen; 2. Prints a hollow square of that size out of “-“, “|” and blanks on screen; 3. Prints the same hollow square onto a text file. Your program should work for squares of all side sizes between 1 and 20. --- │ │ │ │ │ │ ---

1 Answers  


Is recursion allowed in inline functions?

1 Answers  


Can we sort map in c++?

1 Answers  


How to change constant values?

6 Answers   Huawei, Symphony,


what is data Abstraction

2 Answers  


Categories