Explore topic-wise MCQs in C Programming.

This section includes 2 Mcqs, each offering curated multiple-choice questions to sharpen your C Programming knowledge and support exam preparation. Choose a topic below to get started.

1.

Which of the following is true for the static variable?

A. It can be called from another function
B. It exists even after the function ends
C. It can be modified in another function by sending it as a parameter
D. All of the mentioned
Answer» C. It can be modified in another function by sending it as a parameter
2.

What is the format identifier for static a = 20.5; ?

A. %s
B. %d
C. %f
D. Illegal declaration due to absence of data type
Answer» C. %f