519 views
0 votes
0 votes
unsigned int i=1;

int j=-4;

printf(“%u”,i+j);

what is printed by following program fragments?

answer is given as “an integer that changes from machine to machine”.

Please log in or register to answer this question.

Related questions

1 votes
1 votes
1 answer
1
tusharb asked Mar 1, 2022
429 views
Suppose we have a 32-bit memory and we have to representunsigned int a = -5What will the memory representation look like?000000…….1011or 111…..1011
2 votes
2 votes
2 answers
3
srestha asked May 13, 2019
961 views
Can someone explain the output of this code? and what (char*) is doing actually?#include<stdio.h struct Ournode{ char x, y, z; }; int main() { struct Ournode p={'1', '0',...
0 votes
0 votes
1 answer
4
Ashish Roy 1 asked Apr 11, 2019
603 views
X=2;Y=++x * ++x * ++x ;Printf("%d",Y);In the above question, we have to use the final value of x or it will be evaluated seperately and then multiplied.Ex: Y= 3*4*5; or Y...