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

Explore more Topics under C Programming

Q91.
What is the output of this C code?
#include <stdio.h>
    int main()
    {
        unsigned int i = 23;
        signed char c = -23;
        if (i > c)
            printf("Yes\n");
        else if (i < c)
            printf("No\n");
    }
Discuss
Answer: (b).No
Q92.
What is the output of this C code?
#include <stdio.h>
    int main()
    {
        int i = 23;
        char c = -23;
        if (i < c)
            printf("Yes\n");
        else
            printf("No\n");
    }
Discuss
Answer: (b).No
Discuss
Answer: (d).Any character set
Q94.
What is the output of the below code considering size of short int is 2, char is 1 and int is 4 bytes?
#include <stdio.h>
    int main()
    {
        short int i = 20;
        char c = 97;
        printf("%d, %d, %d\n", sizeof(i), sizeof(c), sizeof(c + i));
        return 0;
    }
Discuss
Answer: (c).2, 1, 4
Discuss
Answer: (b).From float to char pointer
Q96.
What will be the data type of the result of the following operation?

(float)a * (int)b / (long)c * (double)d
Discuss
Answer: (d).double
Q97.
Which of the following type-casting have chances for wrap around?
Discuss
Answer: (b).From int to char
Discuss
Answer: (c).Widening & Narrowing conversions
Discuss
Answer: (d).All of the mentioned
Q100.
What is the difference between the following 2 codes?
#include <stdio.h> //Program 1
    int main()
    {
        int d, a = 1, b = 2;
        d =  a++ + ++b;
        printf("%d %d %d", d, a, b);
    }



    
Discuss
Answer: (d).Program 2 has syntax error, program 1 is not

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!