I have bought a C programming course on udemy. The tutor always initializes the variable to 0 before taking the inputs from the user.
int a = 0;
printf("Enter the number: \n");
scanf("%d",&a);
printf("The number you have entered is %d",a);
return 0;
Is it necessary to do so?