C - Storage Classes of Variables
C - Storage Classes of Variables
21. External variable definition uses
- the keyword external
- the keyword extern
- no keyword
- the keyword auto
22. External variable requires
- declaration
- definition
- options a and b
- initialization only
23. If the definition of an external variable does not contain an initializer, it is known as
- forward declaration
- tentative definition
- backward reference
- backward definition
24. External variable definition
- creates the variable
- allocates memory
- does not use extern keyword
- all the above
25. External variable delaration
- does not allocate memory
- uses keyword extern
- cannot be initialized
- all the above
26. The data type that cannot be renamed by typedef is
- function
- pointer
- options a and b
- double
27. What are the valid C scopes of identifiers ?
- external and local
- project, file, and block
- global, file and local
- file and block
28. How is a variable accessed from another file ?
- The global variable is referenced via the global specifier.
- The global variable is referenced via the extern specifier.
- The global variable is referenced via the auto specifier.
- The global variable is referenced via the pointer specifier.
29. Which of the following is/are achieved using typedef facility ?
- increase the portability of code
- write more compact code
- only option b
- neither option a nor b
30. What does invoking the C compiler accomplish ?
- It links together object files.
- It creates machine code.
- Itonly provides code evaluation. You must use thelinker to assemble and link program.
- It interprets files at run-time.