C How it's working its printing 1-10, In the other case when I am putting only "a" in the printf function its printing 0-9?
It's giving 1-10 output:
#include <stdio.h>
int main()
{
for (int a = 0; a < 10; a++)
{
printf("The value of a is %d \n",a+1);
}
return 0;
}
It's giving 0-9 output:
#include <stdio.h>
int main()
{
for (int a = 0; a < 10; a++)
{
printf("The value of a is %d \n",a);
}
return 0;
}