adplus-dvertising

Welcome to the Data Types,Operators and Expressions in C MCQs Page

Dive deep into the fascinating world of Data Types,Operators and Expressions in C with our comprehensive set of Multiple-Choice Questions (MCQs). This page is dedicated to exploring the fundamental concepts and intricacies of Data Types,Operators and Expressions in C, a crucial aspect of C Programming. In this section, you will encounter a diverse range of MCQs that cover various aspects of Data Types,Operators and Expressions in C, 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 Data Types,Operators and Expressions in C. 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 Data Types,Operators and Expressions in C. You can click on an option to test your knowledge before viewing the solution for a MCQ. Happy learning!

Data Types,Operators and Expressions in C MCQs | Page 13 of 66

Explore more Topics under C Programming

Q121.
What is the output of this C code?
#include <stdio.h>
    void main()
    {
        int a = 5, b = -7, c = 0, d;
        d = ++a && ++b || ++c;
        printf("\n%d%d%d%d", a, b, c, d);
    }
Discuss
Answer: (d).6 -6 0 1
Q122.
What is the output of this C code?
#include <stdio.h>
    void main()
    {
        int a = -5;
        int k = (a++, ++a);
        printf("%d\n", k);
    }
Discuss
Answer: (a).-3
Q123.
What is the output of this C code?
#include <stdio.h>
    int main()
    {
        int x = 2;
        x = x << 1;
        printf("%d\n", x);
    }
Discuss
Answer: (a).4
Q124.
What is the output of this C code?
#include <stdio.h>
    int main()
    {
        int x = -2;
        x = x >> 1;
        printf("%d\n", x);
    }
Discuss
Answer: (b).-1
Q125.
What is the output of this C code?
#include <stdio.h>
    int main()
    {
        if (~0 == 1)
            printf("yes\n");
        else
            printf("no\n");
    }
Discuss
Answer: (b).no
Q126.
What is the output of this C code?
#include <stdio.h>
    int main()
    {
        int x = -2;
        if (!0 == 1)
            printf("yes\n");
        else
            printf("no\n");
    }
Discuss
Answer: (a).yes
Q127.
What is the output of this C code?
#include <stdio.h>
    int main()
    {
        int y = 0;
        if (1 |(y = 1))
            printf("y is %d\n", y);
        else
            printf("%d\n", y);
 
    }
Discuss
Answer: (a).y is 1
Q128.
What is the output of this C code?
#include <stdio.h>
    int main()
    {
        int y = 1;
        if (y & (y = 2))
            printf("true %d\n", y);
        else
            printf("false %d\n", y);
 
    }
Discuss
Answer: (c).either option a or option b
Q129.
What is the output of this C code?
#include <stdio.h>
    void main()
    {
        int x = 0;
        if (x = 0)
            printf("Its zero\n");
        else
            printf("Its not zero\n");
    }
Discuss
Answer: (a).Its not zero
Q130.
What is the output of this C code?
#include <stdio.h>
    void main()
    {
        int k = 8;
        int x = 0 == 1 && k++;
        printf("%d%d\n", x, k);
    }
Discuss
Answer: (b).0 8

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!