answersLogoWhite

0

Here is the algorithm of the algorithm to write an algorithm to access a pointer in a variable. Algorithmically.

name_of_the_structure dot name_of_the _field,
eg:

mystruct.pointerfield

User Avatar

Wiki User

12y ago

What else can I help you with?

Related Questions

What is meant by an pointer in c program?

Pointer is like variable address the members in memory shell


What controls the pointer?

The program's statements, just like any other variable.


What Controls pointer?

The program's statements, just like any other variable.


C program pointers to pointers examples?

Pointer to Pointer is a double pointer, denoted by (**). Pointer stores the address of the variable and pointer to pointer stores the address of a pointer variable and syntax can be given as int **ptr2ptr;


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.


How many pointers can be used in a c program?

Answergenerally we use simple pointer, void pointer,null pointer, structure pointer. Answerzero or more (unlimited).


What is the difference bw function pointer and function of pointer?

function pointer is a variable that hold the address of any function which declared in the program but function pointer is the array of the function that accept the run time size of the function.


Pointer is a variable holding a memory address?

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); }


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 null pointer assignment?

This error message means that somewhere in your program you have used a pointer-varible containing NULL-value. (Within an actual OS it with stop the program immediately, but in MS-DOS it doesn't.)


What is the base address of an array in c program?

the address of variable (pointer) that contains array


What is efficent Algorithm?

Basically it depends on your condition of the program but one should have these things in mind while making/writing an algorithm..... 1. Use minimum variable as much as possible. 2. Try to use the pointers instead of array's to allocate the memory at the run time. 3. Always check for the time and space complexity for the algorithm. 4. Use the exact data structure for the given problem.