MCQOPTIONS
Bookmark
Saved Bookmarks
→
C Programming
→
Floating Point Issues
→
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?#include <stdio.h>int main ( ){ double d = 2.25; printf ("%e", d); printf ("%f", d); printf ("%g".d); printf ("%lf n", d); return 0 ;}
Which of the following is the correct output for the program given below?#include <stdio.h>int main ( ){ float f = 43.20; printf ("%e", f); printf ("%f", f); printf ("%g n" , f); return 0 ;}
Which of the following statements are correct about the program given below?#include <stdio.h>int main () { float k = 0.7; if (k < 0.7) printf ("C n"); else printf ("C++ n"); return 0 ;}
Which of the following is the correct output for the program given below? #include <stdio.h>int main ( ){ float n = 2.39; printf("%f %f n", ceil (n), floor (n)) ; return 0 ;}
Which of the following is the correct output for the program given below?#include <stdio.h>#include <math.h>int main ( ){ printf ( "%f n" ,sqrt (49.0)); return 0 ;}
Which of the following is the correct output for the program given below?#include<stdio.h>int main ( ){ float *p; printf ( "%d n " , sizeof ( p ) ); return 0 ;}
Which error are you likely to get when you run the following program in TC/TC++?#include <stdio.h>int main ( ){ struct emp { char name[20]; float sal; }; struct emp e[10]; int i ; for (i = 0; i <= 9; i++) { printf ("Enter name and salary : "); scanf ("%s %f" , e[ i ].name, &e[ i ].sal); } return 0 ;}
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?#include <stdio.h>int main ( ){ float a =5.375 ; char *p ; int i ; p = (char *) &a ; for (i = 0 ; i <= 3 ; i++) printf("%02 X n" , (unsigned char) p[ i ]); return 0 ;}
What will be the output of the following C code?#include <stdio.h> void main() { float num = 0.3; if (num == 0.3) printf("Interview Mania"); else printf("Advanced C Classes"); }
What will be the output of the following C code? #include <stdio.h> int main() { float f = 'I'; printf("%f", f); return 0; }
Reply to Comment
×
Name
*
Email
*
Comment
*
Submit Reply
Your experience on this site will be improved by allowing cookies. Read
Cookie Policy
Reject
Allow cookies