What is pointer with example?
Answer / Rammilan Yadav
A pointer in C++ is a variable that stores the memory address of another variable. It allows direct access and manipulation of memory locations. An example is: int num = 5; int* pNum = # Here, pNum is a pointer to an integer, and its value is the memory address of num.
| Is This Answer Correct ? | 0 Yes | 0 No |
Can c++ do everything c can?
What is c++ stringstream?
What is the real purpose of class – to export data?
What are raw sockets, where they are efficient?
Describe about storage allocation and scope of global, extern, static, local and register variables?
Disadvantages of c++
Explain virtual functions in C++.
Explain the need for "Virtual Destructor"?
What happens when a function throws an exception that was not specified by an exception specification for this function?
How to tokenize a string in c++?
Can we remove an element in a single linked list without traversing? Lets suppose the link list is like this 1 2 3 4 5 6 We need to remove 4 from this list (without traversing from beginning) and the final link list shud be 1 2 3 5 6 only thing we know is the pointer to element "4". How can we remove "4" and link "3" to "5"?
What are c++ data types?