I have been trying to run this program that contains scanf on Visual studio on my Mac but the program never runs. I have tried the scanf without the & too and it still doesn't output any prompt. Any solution?
#include <stdio.h>
int main()
{
int testInteger;
printf("Enter an integer: ");
scanf("%d", &testInteger);
printf("Number = %d",testInteger);
return 1;
}
When I run the code and stop it this is all I get
[Done] exited with code=null in 11.983 seconds