adplus-dvertising

Welcome to the Functions MCQs Page

Dive deep into the fascinating world of Functions with our comprehensive set of Multiple-Choice Questions (MCQs). This page is dedicated to exploring the fundamental concepts and intricacies of Functions, a crucial aspect of C Programming. In this section, you will encounter a diverse range of MCQs that cover various aspects of Functions, from the basic principles to advanced topics. Each question is thoughtfully crafted to challenge your knowledge and deepen your understanding of this critical subcategory within C Programming.

frame-decoration

Check out the MCQs below to embark on an enriching journey through Functions. Test your knowledge, expand your horizons, and solidify your grasp on this vital area of C Programming.

Note: Each MCQ comes with multiple answer choices. Select the most appropriate option and test your understanding of Functions. You can click on an option to test your knowledge before viewing the solution for a MCQ. Happy learning!

Functions MCQs | Page 15 of 39

Explore more Topics under C Programming

Q141.
Which of the following names for files not accepted?
Discuss
Answer: (d).None of the mentioned
Q142.
What is the output of this C code?
#include <stdio.h>
    #define foo(m, n) m ## n
    int main()
    {
        printf("%s\n", foo(k, l));
    }
Discuss
Answer: (c).Compile time error
Q143.
What is the output of this C code?
#include <stdio.h>
    #define foo(m, n) " m ## n "
    int main()
    {
        printf("%s\n", foo(k, l));
    }
Discuss
Answer: (d).m ## n
Q144.
What is the output of this C code?
#include <stdio.h>
    #define foo(x, y) #x #y
    int main()
    {
        printf("%s\n", foo(k, l));
        return 0;
    }
Discuss
Answer: (a).kl
Q145.
What is the output of this C code?
#include <stdio.h>
    #define foo(x, y) x / y + x
    int main()
    {
        int i = -6, j = 3;
        printf("%d\n",foo(i + j, 3));
        return 0;
    }
Discuss
Answer: (c).-8
Q146.
What is the output of this C code?
#include <stdio.h>
    void f();
    int main()
    {
        #define foo(x, y) x / y + x
        f();
    }
    void f()
    {
        printf("%d\n", foo(-3, 3));
    }
Discuss
Answer: (b).-4
Q147.
What is the output of this C code?
#include <stdio.h>
    void f();
    int main()
    {
        #define max 10
        f();
        return 0;
    }
    void f()
    {
        printf("%d\n", max * 10);
    }
Discuss
Answer: (a).100
Q148.
What is the output of this C code?
#include <stdio.h>
    #define foo(x, y) x / y + x
    int main()
    {
        int i = -6, j = 3;
        printf("%d ", foo(i + j, 3));
        printf("%d\n", foo(-3, 3));
        return 0;
    }
Discuss
Answer: (a).-8 -4
Q149.
What is the output of this C code?
#include <stdio.h>
    int foo(int, int);
    #define foo(x, y) x / y + x
    int main()
    {
        int i = -6, j = 3;
        printf("%d ",foo(i + j, 3));
        #undef foo
        printf("%d\n",foo(i + j, 3));
    }
    int foo(int x, int y)
    {
        return x / y + x;
    }
Discuss
Answer: (a).-8 -4
Discuss
Answer: (a).Data type is flexible

Suggested Topics

Are you eager to expand your knowledge beyond C Programming? We've curated a selection of related categories that you might find intriguing.

Click on the categories below to discover a wealth of MCQs and enrich your understanding of Computer Science. Happy exploring!