answersLogoWhite

0


Best Answer

pointer is a derived datatype which contains memory addresses as their values.

program:-

#include<stdio.h>

#include<conio.h>

void main()

{

int m=5,*p;

clrscr();

p=&m;

printf("address of variable m is %p",(void *)p);

}

User Avatar

Wiki User

13y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

13y ago

int *x,*y;

int a=14,b=10;

x=&a;

y=&b;

printf(the variable and address of the variable a is %d", a,*x);

This answer is:
User Avatar

User Avatar

Wiki User

14y ago

Yes, the value of a pointer is an address.

For example:

int iv= 12;
int *ptr = &iv; /* now the value of 'ptr' is the address of 'iv' */

This answer is:
User Avatar

User Avatar

Wiki User

14y ago

Yep. It's rvalue is the lvalue of another variable.

This answer is:
User Avatar

User Avatar

Wiki User

11y ago

7. Write a program to implement linked lists using pointers.

This answer is:
User Avatar

User Avatar

Wiki User

12y ago

> How do you access a pointer using structure

Not possible.

> and write a program using that

Do write.

This answer is:
User Avatar

User Avatar

Wiki User

12y ago

variable = value;

example:

int n, *p;

p= &n;

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Pointer is a variable holding a memory address?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What variable has memory address as its value?

pointer


What is a memory pointer?

A pointer is a variable that stores a memory address and that allows indirect access to the object or value stored at that address.


What is a variable that has a memory address as its value is called?

Pointer.


What is void pointer variable?

A void pointer variable is a pointer variable (of some type) that is assigned the value zero, meaning it points to address zero. Memory address zero is a reserved address, which means the pointer variable references nothing in particular.


What is pointer why you use pointer?

Pointer is a variable that stores the address of another variable. Since pointer is also akind of variable, thus pointer itself will be stored at a different memory location.


How are we going to use pointer in a program?

A pointer is a variable used specifically to store a memory address. We say the variable "points to" the memory address because we can dereference the pointer to access the value stored at that address. The pointer's type determines how that dereferenced value will be interpreted. Being a variable, we can change the stored address and thus change which value we point at. This makes it possible for the same variable to refer to different objects in memory, which includes other pointer variables.


What is meant by an pointer in c program?

Pointer is like variable address the members in memory shell


How do pointer work in c program?

Pointer can be defined as variable that is used to store memory address , usually the location another variable in memory. Pointers provide a means through which memory location of a variable can be directly accessed.


Is class a pointer?

No. In computer programming, a class is a data type while a pointer is a variable that can store a memory address.


What is pointers in c?

a pointer is a variable .it specify the address of the particular variable ,the &amp; symbol is to specify the address of the variable.


What is poiner value in c?

In c a pointer is a variable that points to or references a memory location in which data is stored. Each memory cell in the computer has an address that can be used to access that location so a pointer variable points to a memory location we can access and change the contents of this memory location via the pointer. Pointer declaration A pointer is a variable that contains the memory location of another variable. The syntax is as shown below. You start by specifying the type of data stored in the location identified by the pointer. The asterisk tells the compiler that you are creating a pointer variable. Finally you give the name of the variable. type * variable name Example: int *ptr; float *string;


Array of pointers?

a pointer is a variable that contains memory location of another variable.the value u assign to the pointers are memory address of other variable.