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 |
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++?
What is atoi in c++?
What is c++ namespace?
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?
What are the different types of polymorphism in c++?
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. --- │ │ │ │ │ │ ---
Is recursion allowed in inline functions?
Can we sort map in c++?
How to change constant values?
what is data Abstraction