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

Q511.
What is the output of this program?
void main()
{
int x = 10;
float x = 10;
printf("%d", x)
}
Discuss
Answer: (a).Compilation Error
Q512.
What is the output of this program?
    #include <stdio.h>
    int main()
    {
        int i;
        for (i = 0;i < 5; i++)
        int a = i;
        printf("%d", a);
    }
Discuss
Answer: (a).Syntax error in declaration of a
Q513.
What is the output of this program?
  #include <stdio.h>
  int var = 20;
  int main()
  {
    int var = var;
    printf("%d ", var);
    return 0;
  }
Discuss
Answer: (a).Garbage Value
Q514.
What is the output of this program?
void main()
{
      int p, q, r, s;
      p = 1;
      q = 2;
      r = p, q;
      s = (p, q);
      printf("p=%d q=%d", p, q);
}
Discuss
Answer: (b).p=1 q=2
Q515.
What is the output of this program?
void main()
{
   printf("%x",-1<<4);
}
Discuss
Answer: (a).fff0
Q516.
What is the output of this program?
#include <stdio.h>
void main()
{
   int a=1, b=2, c=3, d;
   d = (a=c, b+=a, c=a+b+c);
   printf("%d %d %d %d", d, a, b, c);
}
Discuss
Answer: (a).11 3 5 11
Q517.
What is the output of this program?
void main()
{
   int a, b = 5, c;
   a = 5 * (b++);
   c = 5 * (++b);
   printf("%d %d",a,c);
}
Discuss
Answer: (d).25 35
Q518.
What is size of int in C ?
Discuss
Answer: (d).Depends on the system/compiler
Q519.
Range of double is -1.7e-38 to 1.7e+38. (in 16 bit platform - Turbo C under DOS)
Discuss
Answer: (b).False
Q520.
Array is ______ datatype in C Programming language.
Discuss
Answer: (a).Derived Data type

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!