Hi everyone,I'm a beginner at this and I was doing some exercises,but every time the result was some big weird number,so i thought "Why don't I write this simple program to see whats wrong *code below*."And I see that even that doesn't work out.Every time it prints out a different number *output also below*,so I'm looking for help here.
If someone could see what could be the problem,and explain it to me a little bit,I would be very thankful.
1 2 3 4 5 6 7 8 9 10 11 12
#include<math.h>
#include<stdlib.h>
#include<stdio.h>
int main()
{
int a;
scanf_s("%d", &a);
printf("%d", &a);
system("pause");
}
Output:
55
17824528Press any key to continue . . .