I am trying to show the a number that I have specified in a program, but recieve the following error:
main.c(23): error #2048: Undeclared identifier 'number'.
#include <stdio.h>
int main()
{
{
int number = 32 ;
}
printf("integer is %d \n", number );
return 0;
}
I'm aware the solution to this must be very simple to some users, however i'm following instructions from a book and as far as I know i'm following to the letter.
Please any help would be greatly appreciated.