#include<stdio.h>
#include<stdlib.h>
int main() {
int *n = malloc(sizeof(int*));//line 1
scanf("%d",n);
printf("%d",*n);
}
I am not sure what is happening here. Does line 1 (in the snippet above) mean n now simply is a pointer to an int? And we have started using the memory allocated for a pointer as variable itself? Is the pointer to pointer cast to pointer to int?
