Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in C Programming by (55.6k points)
recategorized by
Can anyone explain what is a pointer in C?

1 Answer

0 votes
by (119k 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
asked Jul 7, 2020 in C Programming by Sudhir_1997 (55.6k points)
0 votes
3 answers
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

31k questions

32.8k answers

501 comments

693 users

Browse Categories

...