Data Types and Sizes – 1.Image.Marked.pdf


Preview of PDF document data-types-and-sizes-1-image-marked.pdf

Page 1 2 3 4 5 6 7

Text preview


b) -128
c) Depends on the compiler
d) None of the mentioned
View Answer
Answer:b
Explanation:signed char will be a negative number.
Output:
$ cc pgm2.c
$ a.out
-128

7. Comment on the output of this C code?

#include

<stdio.h>

int main()

{

char c;

int i = 0;

FILE *file;

file = fopen("test.txt", "w+");