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 12 of 66

Explore more Topics under C Programming

Q111.
What is the output of this C code?
#include <stdio.h>
    void main()
    {
        int x = 4, y, z;
        y = --x;
        z = x--;
        printf("%d%d%d", x,  y, z);
    }
Discuss
Answer: (b).2 3 3
Q112.
What is the output of this C code?
#include <stdio.h>
    void main()
    {
        int x = 4;
        int *p = &x;
        int *k = p++;
        int r = p - k;
        printf("%d", r);
    }
Discuss
Answer: (c).1
Q113.
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
Q114.
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: (d).-3
Q115.
What is the output of this C code?
#include <stdio.h>
    int main()
    {
        int c = 2 ^ 3;
        printf("%d\n", c);
    }

a.

1

b.

8

c.

9

d.

0

Discuss
Answer: (a).1
Q116.
What is the output of this C code?
#include <stdio.h>
    int main()
    {
        unsigned int a = 10;
        a = ~a;
        printf("%d\n", a);
    }
Discuss
Answer: (c).-11
Q117.
What is the output of this C code?
#include <stdio.h>
    int main()
    {
        if (7 & 8)
        printf("Honesty");
            if ((~7 & 0x000f) == 8)
                printf("is the best policy\n");
    }
Discuss
Answer: (c).is the best policy
Q118.
What is the output of this C code?
#include <stdio.h>
    int main()
    {
        int a = 2;
        if (a >> 1)
           printf("%d\n", a);
    }
Discuss
Answer: (c).2
Q119.
Comment on the output of this C code?
#include <stdio.h>
    int main()
    {
        int i, n, a = 4;
        scanf("%d", &n);
        for (i = 0; i < n; i++)
            a = a * 2;
    }
Discuss
Answer: (b).No output
Q120.
What is the output of this C code?
#include <stdio.h>
    void main()
    {
        int x = 4, y, z;
        y = --x;
        z = x--;
        printf("%d%d%d", x, y, z);
    }
Discuss
Answer: (d).2 3 3

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!