Briefly describe about precautions a programmer should take while using 'if'?




main()
{
int a;
printf("Enter a integer value for a:");
scanf("%d", &a);
if(a=15)
printf("Value of a is l5.");
else
printf("Value of a is other than 15.");
}

No comments:

Post a Comment