what Is Meaning of the Declaration Const Volatile Int a=6

value of variable cannot be changed by programmer (due to const) but it value can be changed by external device or hardware interrupt (due to volatile).


const volatile int a=6;// HERE variable int a is constant so that it can't change by the programmer but it   
                                                   can  change external because of volatile
int main()

  printf("canst volatile %d",a);


output: canst volatile 6


Post a Comment

Don't Forget to comment

About Me

My photo

HI i am mohammed  a Embedded Software Developer ,SEO specialist,Electronic engineer   Read more