PrepAway - Latest Free Exam Questions & Answers

What type of problem will result if the following statement is used?

What type of problem will result if the following statement is used?
int main()
{
short int a;
unsigned short int=b32768;
a=b;
printf( ” a = %d”, a);
b=65535;
a=b;
printf( ” a = %d”, a);
}

PrepAway - Latest Free Exam Questions & Answers

A.
Truncation

B.
Pointer subterfuge

C.
Sign error

D.
Function-pointer clobbering


Leave a Reply