Accenture Latest Placement Papers C Language(Technical)

Accenture Logo

Accenture Latest Placement Papers C Language(Technical)

1) Which of the following statements is false?

a)Pointers are designed for storing memory addresses
b)Arrays are passed by value to functions
c)Both of the above are false

Answer: Both of the above are false

2) Which of the following statements is true regarding static variables?

a) Which of the following statements is true regarding static variables?
b) Only local variables can be defined as static variables
c) Scope and life of global variables is limited to the function to which they are declared

Answer: Both local and global variables can be defined as static variables