Level 58 Level 60
Level 59


15 words 0 ignored

Ready to learn       Ready to review

Ignore words

Check the boxes below to ignore/unignore words, then click save at the bottom. Ignored words will never appear in any learning session.

All None

a variable whose value is the address of another variable, i.e., direct address of the memory location
type *var-name;
the general form of a pointer variable declaration
int *ip;
pointer to an integer
double *dp;
pointer to a double
float *fp;
pointer to a float
char *ch
pointer to a character
How to Use Pointers?
#include <stdio.h> int main () { int var = 20; /* actual variable declaration */ int *ip; /* pointer variable declaration */ ip = &var; /* store address of var in pointer variable*/
NULL pointer
a constant with a value of zero defined in several standard libraries
C Null Pointers
C supports null pointer, which is a constant with a value of zero defined in several standard libraries.
C pointer arithmetic
There are four arithmetic operators that can be used on pointers: ++, --, +, -
C pointers vs arrays
There is a close relationship between pointers and arrays. Let us check how?
C array of pointers
You can define arrays to hold a number of pointers.
C pointer to pointer
C allows you to have pointer on a pointer and so on.
Passing pointers to functions
Passing an argument by reference or by address both enable the passed argument to be changed in the calling function by the called function.
Return pointer from functions
C allows a function to return a pointer to local variable, static variable and dynamically allocated memory as well.