0 votes
1 view
in C Programming by (37.2k points)
recategorized by
Can anyone explain what is a pointer in C?

1 Answer

0 votes
by (90.2k points)

A pointer is a variable that stores the address of another variable, i.e., direct address of the memory location of another variable. To store the address of any variable in the memory, you can use a pointer to before using it to store any variable address. Here is the syntax to declare a pointer variable:

type *var-name;

Example:

int    *ip;    /* pointer to an integer */

double *dp;    /* pointer to a double */

float  *fp;    /* pointer to a float */

char   *ch     /* pointer to a character */

If you want to learn C programming, then check out this C Language Course by Intellipaat.

Also, watch this YouTube tutorial on C programming:

Related questions

0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
Welcome to Intellipaat Community. Get your technical queries answered by top developers !


Categories

...