It compiles correctly, but when I run it and input a number it outputs some random string of seven numbers. I have no idea what to do with this. For example I put in 5 and it gives me 2751724 then I do it again and get 3537324. I don't know if I have some settings off or what but this seems pretty simple to me.
#include "stdafx.h"
#include <stdio.h>
int _tmain(int argc, _TCHAR* argv[])
{
int number;
printf("Input number: ");
scanf_s("%d", &number);
printf("Number is: %d \n", &number);
return 0;
}
printf("Number is: %d \n", &number);. Hint: what does&do here?