MCQOPTIONS
Bookmark
Saved Bookmarks
→
C Programming
→
Floating Point Issues in C Programming
→
What is the range of a signed char variable in C?..
1.
What is the range of a signed char variable in C?
A.
0 to 255
B.
-128 to 127
C.
0 to 127
D.
-128 to 255
Answer» C. 0 to 127
Show Answer
Discussion
No Comment Found
Post Comment
Related MCQs
Which of the following is the correct output for the program given below?<br><pre class="prettyprint lang-c">#include <stdio.h><br>int main ( )<br>{<br> double d = 2.25;<br> printf ("%e", d);<br> printf ("%f", d);<br> printf ("%g".d);<br> printf ("%lf n", d);<br> return 0 ;<br>} </pre>
Which of the following is the correct output for the program given below?<br><pre class="prettyprint lang-c">#include <stdio.h><br>int main ( )<br>{<br> float f = 43.20;<br> printf ("%e", f);<br> printf ("%f", f);<br> printf ("%g n" , f);<br> return 0 ;<br>}</pre>
Which of the following statements are correct about the program given below?<br><pre class="prettyprint lang-c">#include <stdio.h><br>int main ()<br> {<br> float k = 0.7;<br> if (k < 0.7)<br> printf ("C n");<br> else<br> printf ("C++ n");<br> return 0 ;<br>}</pre>
Which of the following is the correct output for the program given below?<br> <pre class="prettyprint lang-c">#include <stdio.h><br>int main ( )<br>{<br> float n = 2.39;<br> printf("%f %f n", ceil (n), floor (n)) ;<br> return 0 ;<br>}</pre>
Which of the following is the correct output for the program given below?<br><pre class="prettyprint lang-c">#include <stdio.h><br>#include <math.h><br>int main ( )<br>{<br> printf ( "%f n" ,sqrt (49.0));<br> return 0 ;<br>}<br></pre>
Which of the following is the correct output for the program given below?<br><pre class="prettyprint lang-c">#include<stdio.h><br>int main ( )<br>{<br> float *p;<br> printf ( "%d n " , sizeof ( p ) );<br> return 0 ;<br>}<br></pre>
Which error are you likely to get when you run the following program in TC/TC++?<br><pre class="prettyprint lang-c">#include <stdio.h><br>int main ( )<br>{<br> struct emp<br> {<br> char name[20];<br> float sal;<br> };<br> struct emp e[10];<br> int i ;<br> for (i = 0; i <= 9; i++)<br> {<br> printf ("Enter name and salary : ");<br> scanf ("%s %f" , e[ i ].name, &e[ i ].sal);<br> }<br> return 0 ;<br>}</pre>
If the binary equivalent of 5.375 in normalized form is 0100 0000 1010 1100 0000 0000 0000 0000, what will be the output of the following program?<br><pre class="prettyprint lang-c">#include <stdio.h><br>int main ( )<br>{<br> float a =5.375 ;<br> char *p ;<br> int i ;<br> p = (char *) &a ;<br> for (i = 0 ; i <= 3 ; i++)<br> printf("%02 X n" , (unsigned char) p[ i ]);<br> return 0 ;<br>}</pre>
What will be the output of the following C code?<br><pre class="prettyprint lang-c">#include <stdio.h><br> void main()<br> {<br> float num = 0.3;<br> if (num == 0.3)<br> printf("Interview Mania");<br> else<br> printf("Advanced C Classes");<br> }<br></pre>
What will be the output of the following C code?<br><pre class="prettyprint lang-c"> #include <stdio.h><br> int main()<br> {<br> float f = 'I';<br> printf("%f", f);<br> return 0;<br> }<br></pre>
Reply to Comment
×
Name
*
Email
*
Comment
*
Submit Reply