Hi all
I am trying to understand the proper use of storage class in c programming
we can specify a storage class while declaring a variable
For a example,
Suppose I have written auto int count; in the above code
I don't see any difference at output of program It gives same output as its giving without auto
I am trying to understand the proper use of storage class in c programming
we can specify a storage class while declaring a variable
Code:
Storage_class Data_type Variable_name ;
For a example,
Code:
#include<stdio.h>
void loop (void)
{
int count;
for (count = 0; count <= 10; count++)
{
printf("Number : %d \n", count);
}
}
int main(void)
{
loop();
return 0;
}
Suppose I have written auto int count; in the above code
I don't see any difference at output of program It gives same output as its giving without auto