Top

Functions

11.

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

Answer: B

No answer description available for this question.
 

Enter details here

12.

Functions have static qualifier for its declaration by default.

Answer: B

No answer description available for this question.
 

Enter details here

13.

The value obtained in the function is given back to main by using ________ keyword?

Answer: A

No answer description available for this question.

Enter details here

Answer: D

No answer description available for this question.

Enter details here

15.

Array sizes are optional during array declaration by using ______ keyword.

Answer: C

No answer description available for this question.
 

Enter details here

16.

Which of the following cannot be static in C?

Answer: D

No answer description available for this question.

Enter details here

17.

In C all functions except main() can be called recursively.

Answer: B

Any function including main() can be called recursively.

Enter details here

18.

What is the output of this C code?

void m()
{
printf("hi");
}
void main()
{
m();
}

 

Answer: A

No answer description available for this question.

Enter details here

19.

What is the output of this C code?

int main()
    {
        auto i = 10;
        const auto int *p = &i;
        printf("%d\n", i);
    }

 

Answer: A

No answer description available for this question.

Enter details here

20.

Which part of the program address space is p stored in the code given below?

int *p;
    int main()
    {
        int i = 0;
        p = &i;
        return 0;
    }

 

Answer: C

No answer description available for this question.

Enter details here

Loading…
Tags: Functions Questions and Answers || Functions MCQ Questions and Answers || Functions GK Questions and Answers || Functions GK MCQ Questions || Functions Multiple Choice Questions and Answers || Functions GK || GK on Functions || C Programming Questions and Answers || C Programming MCQ Questions and Answers || C Programming GK Questions and Answers || GK on C Programming