I'm fairly new to C programming, so I figured I'd try writing a simple program to
print two int
numbers. I prompt the user for both numbers, and then just print both using printf
However, upon running the program, I get a result which is really bizarre.
For instance...
Enter first int: 5
Enter second int: 3
First int: 2130567168
Second int: 2686756
My code is below...
#include <stdio.h>
int main()
{
int x, y;
printf("Enter first number: ");
scanf("%i", x);
printf("Enter second number: ");
scanf("%i", y);
printf("%i\n%i%\n",x,y);
return 0;
}