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

Q531.
What is the output of this program?
int main()
{
char ch;
ch = 128;
printf("%d", ch);
return 0;
}
Discuss
Answer: (b).-128
Q532.
What is the output of this program?
int main()
{
float x = 'a';
printf("%f", x);
return 0;
}
Discuss
Answer: (c).97.000000
Q533.
How would you round off a value from 6.66 to 7.0?
Discuss
Answer: (a).ceil(6.66)
Q534.
What will be the output of the program in 16 bit platform ?
#include <stdio.h>
int main()
{
    extern int i;
    i = 20;
    printf("%d", sizeof(i));
    return 0;
}
Discuss
Answer: (d).Linker Error
Q535.
What will be output when you will execute following c code?
#include <stdio.h>
int main()
{
    printf("%d ",sizeof(5.5));
    printf("%d ",sizeof(50000));
    printf("%d",sizeof('A')); 
    return 0;
  }
Discuss
Answer: (d).compiler dependent
Q536.
What is the output of this program?
void main()
{
      int i=0, j=1, k=2, m;
      m = i++ || j++ || k++;
      printf("%d %d %d %d", m, i, j, k);
}
Discuss
Answer: (b).1 1 2 2
Q537.
What is the output of this program?
void main()
{
      int c = - -14; 
      printf("%d", c); 
}
Discuss
Answer: (b).14
Q538.
What is the output of this program?
void main()
{ 
      int i=5; 
      i = !i>10; 
      printf("%d", i); 
}
Discuss
Answer: (c).0
Q539.
The format identifier %i is also used for _____ data type?
Discuss
Answer: (b).int
Q540.
In expression i = g() + f(), first function called depends on __________
Discuss
Answer: (a).Compiler

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!