Variable in C Language Questions and Answers

Read tutorials from Variable in C Language


Question List:

1. What does static variable mean?

2. Where is the auto variables stored?

3. Where does global, static, and local, register variables, free memory and C Program instructions get stored?

4. Describe about storage allocation and scope of global, extern, static, local and register variables?

5. What are register variables? What are the advantages of using register variables?

6. What is storage class? What are the different storage classes in C?

7. What is the difference between declaration and definition of a variable/function

8. What are different storage class specifiers in C?

9. What is the difference between declaration and definition of a variable/function

10. What are local static variables? What is their use?

11. Can a variable be both const and volatile?

12. What is a static variable?

13. What is the purpose of extern storage specifier?

14. When should we use the register storage specifier?

15. Where an automatic variable is stored?

16. What is the difference between variable declaration and variable definition? ( in a line)

17. What is variable initialization and why is it important?

18. What is wrong with this program statement? void = 10;

19. Is this program statement valid? INT = 10.50;

20. What are global variables and how do you declare them?

21. What is Blocks and Scope in c ?

22. What is Variable Storage Classes?

23. What is Variable Declaration ?

24. What is variable in C?

25. What is the difference between constant and variable in C?

26. Can variable name start with numbers?

27. What is the difference between variable declaration and variable definition in C?

28. What are the different types of variable in C?

29. What is local variable in C?

30. What is global variable in C?

31. What is environment variable in C?

32. What is the difference between auto variable and register variable in C?

33. What is the difference between auto variable and static variable in C?

34. What is the difference between the local variable and global variable in C?

35. What is the use of a static variable in C?

36. What is static memory allocation?

37. What is an auto keyword in C?