Types of Variables

0 votes
asked Sep 9, 2019 by (120 points)

1 Answer

0 votes
answered Sep 11, 2019 by anonymous
they are mainly 3 types of variables

1)local variables //by default it will assign as a garbage value.this is present in with in the function.

2) global variables //by default it will assign as a zero.it will access entire the program.

3)Static variables //this is also similar to local variables but the difference is this initialize every time
Welcome to OnlineGDB Q&A, where you can ask questions related to programming and OnlineGDB IDE and and receive answers from other members of the community.