C Programming Questions Static Variables Online Exam Quiz

C Programming Questions Static Variables GK Quiz. Question and Answers related to C Programming Questions Static Variables. MCQ (Multiple Choice Questions with answers about C Programming Questions Static Variables

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

Options

A : %s

B : %d

C : %f

D : Illegal declaration due to absence of data type

View Answer

Which of the following is true for the static variable?

Options

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

View Answer

Assignment statements assigning value to local static variables are executed only once.

Options

A : True

B : False

C : Depends on the code

D : None of the mentioned

View Answer

Functions have static qualifier for its declaration by default.

Options

A : True

B : False

C : Depends on the compiler

D : Depends on the standard

View Answer

Is initialisation mandatory for local static variables?

Options

A : Yes

B : No

C : Depends on the compiler

D : Depends on the standard

View Answer

Chemical Engineering Basics - Part 1 more Online Exam Quiz

C Programming Pointers Pointers 1

C Programming Pointers Vs Multi Dimensional Arrays 2

C Programming Questions And Answers Structures Functions

C Programming Questions Goto Labels

C Programming Questions Macro Substitution

C Programming Random Number Generation 1

C Programming Self Referential Structures 1

C Programming Sizeof Keyword 1

C Programming Sizeof Keyword 2

C Programming Storage Management 1