As per what I know, %d expects an int value. I don't understand why gcc compiler is saying that it expects int* instead.
Here is my code:
int rn, m;
struct student* s;
struct student **q=s;
int i = 0;
printf("Roll number: ");
warning: format ‘%d’ expects argument of type ‘int *’, but argument 2 has type ‘int’ [-Wformat=]
scanf reads a value into an int, it takes an pointer to the variable to read into.