C Programming

C Programming

6 – What is the outpout of the following program?

#include<stdio.h> _x000D_
main(){enum { india, is=7, GREAT }; _x000D_
      printf("%d %d", india, GREAT); }

A – 0 1.

B – 0 2

C – 0 8

D – Compile error

Q 7 – What is the output of the following code snippet?

#include<stdio.h> _x000D_
main(){char c = 'A'+255;    _x000D_
    printf("%c", c); }

A – A

B – B

C – Overflow error at runtime

D – Compile error

Q 8 – What is the output of the following code snippet?

#include<stdio.h> _x000D_
main(){short unsigned int i = 0; _x000D_
   _x000D_
   printf("%un", i--); }

A – 0

B – Compile error

C – 65535

D – 32767

"You need a similar assignment done from scratch? Our qualified writers will help you with a guaranteed AI-free & plagiarism-free A+ quality paper, Confidentiality, Timely delivery & Livechat/phone Support.


Discount Code: CIPD30



Click ORDER NOW..

order custom paper