Top

Functions

51.

Which of the following is a storage specifier?

Answer: C

No answer description available for this question.

Enter details here

52.

What is the output of this C code?

int x;
    void main()
    {
        printf("%d", x);
    }

 

Answer:

Enter details here

53.

The output of the code below is

void main()
    {
        int k = m();
        printf("%d", k);
    }

    void m()
    {

        printf("hello");
    }

 

Answer: A

No answer description available for this question.

Enter details here

54.

Usually recursion works slower than loops.

Answer: A

When a recursive call is made, the function/process clones itself and then process that funtion. This leads to time and space constrains.

In a loop, there is no recursive call involved that saves a lot of time and space too.

Enter details here

55.

What is the output of this C code?

void main()
    {
        m();
        printf("%d", x);
    }
    int x;
    void m()
    {
        x = 4;
    }

 

Answer: B

No answer description available for this question.

Enter details here

56.

What is the output of this C code?

void main()
    {
        int x;
    }

here x is?

Answer: A

No answer description available for this question.
 

Enter details here

57.

If a function contains two return statements successively, the compiler will generate warnings. Yes/No ?

Answer: A

No answer description available for this question.
 

Enter details here

58.

Automatic variables are stored in:

Answer: A

No answer description available for this question.

Enter details here

59.

Automatic variables are initialized to?

Answer: B

No answer description available for this question.
 

Enter details here

60.

In a function two return statements should never occur.

Answer: B

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