You are on page 1of 1

#include <stdio.

h>
main()
{
int i;
int *pi = &i;
scanf("%d", pi);
printf("%d\n", i+5);
}
There is no problem in the program as pi points to a valid location.
In scanf() we pass address of a variable and pi is an address.
3 = 1.732

You might also like