What would be the error code for this?? Am I using perror() at right place?? The output shows "No error"
#include <stdio.h>
#include <conio.h>
#define MAX_VAL 32000
int main()
{
start:
int x;
printf("Enter a value for x= ");
scanf("%d", &x);
if (x > MAX_VAL)
{
perror("");
getch();
system("cls");
goto start;
}
printf("%d",x);
getch();
return 0;
}