Weird output of scanf and printf.
I've come up with the following program:
The program runs and puts this out:
printf( "Enter a number: " );
scanf( "%d", &a );
printf( "You entered %d \n", a );
printf( "You entered %d", &a );
It doesn't mattter which number I put in, the 37814108 will still be the output.
Enter a number: 1
You entered: 1
You entered: 37814108
I'm using Bloodshed Dev 4. Is this a strange output, or is it normal?