Top

Functions

Answer: B

No answer description available for this question.

Enter details here

72.

What is the output of this C code?

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

 

Answer:

Enter details here

73.

The output of the code below is

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

 

Answer: A

No answer description available for this question.

Enter details here

74.

Is initialization mandatory for local static variables?

Answer: B

No answer description available for this question.
 

Enter details here

Answer: E

No explanation.

Enter details here

76.

What is the output of this C code?

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

 

Answer: D

No answer description available for this question.
 

Enter details here

77.

Functions cannot return a floating point number

Answer: B

No answer description available for this question.
 

Enter details here

78.

What is the output of this C code?

double foo();
    int main()
    {
        foo();
        return 0;
    }
    foo()
    {
        printf("2 ");
        return 2;
    }

 

Answer: B

No answer description available for this question.

Enter details here

79.

Names of functions in two different files linked together must be unique

Answer: A

True, If two function are declared in a same name, it gives "Error: Multiple declaration of function_name())".

Enter details here

80.

What is the output of this C code?

double i;
    int main()
    {
       printf("%g\n",i);
       return 0;
    }

 

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