What is a pointer in C and how can create a pointer
Answers
Answered by
2
Pointers are an extremely powerful programming tool.
help improve your program's efficiency, and even allow you to handle unlimited amounts of data.
For ex.
#include <stdio.h>
int main()
{
int x;
int *p; /* A pointer to an integer
p = &x;
scanf( "%d", &x );
printf( "%d\n", *p );
getchar();
}
For ex.
#include <stdio.h>
int main()
{
int x;
int *p; /* A pointer to an integer
p = &x;
scanf( "%d", &x );
printf( "%d\n", *p );
getchar();
}
Similar questions