saving . . . saved Pointer has been deleted. Pointer has been hidden .
Pointer
Title
Question
What is pointer in C ?

Advanced-Cpp Classes-And-Objects 01-02 min 20-30 sec 30-06-18, 12:01 p.m. harekrishna.nitb@gmail.com

Answers:

Pls watch this tutorial to know about pointers in C.
https://spoken-tutorial.org/watch/C+and+Cpp/Understanding+Pointers/English/
24-03-19, 9:40 p.m. nancy
A pointer is a special variable which is used to store address of another variable.
04-05-21, 4:48 p.m. saravana_7528
14-07-25, 1:22 p.m. 240181601025@crescent.education

Login to add comment


A pointer is a special variable which is used to store address of another variable.

For ex.
   int a;
   int *p=&a;

in the above example, a is an integer type variable. p is a pointer variable which is used to store address of integer variable.

29-02-20, 3:59 p.m. chetan_kamani
14-07-25, 1:22 p.m. 240181601025@crescent.education
14-07-25, 1:22 p.m. 240181601025@crescent.education
14-07-25, 1:22 p.m. 240181601025@crescent.education
14-07-25, 1:22 p.m. 240181601025@crescent.education

Login to add comment


pointer is a variable whose value is the address of another variable, i.e., direct address of the memory location.

Like any variable or constant, you must declare a pointer before using it to store any variable address

The general form of a pointer variable declaration is − type *var-name;

Refer to the following websites: 

https://www.tutorialspoint.com/cprogramming/c_pointers.htm

https://spoken-tutorial.org/watch/C+and+Cpp/Understanding+Pointers/English/

04-05-20, 11:07 p.m. Nityasree
14-07-25, 1:23 p.m. 240181601025@crescent.education

Login to add comment


In C++, a pointer is a variable that stores the memory address of another variable.

Example:

int num = 10;
int *ptr = # // ptr points to num

It lets you access or modify the value indirectly.


14-07-25, 12:14 p.m. 240181601063@crescent.education


Log-in to answer to this question.