gaurav.2897
BAN USER
Questions (6)
Comments (2)
Reputation 110
- 0of 0 votes
Answersnegate each bit of 32 bit integer. I answered with XOR with FFFF but interviewer asked will ~(number) work? I answered as no.
- gaurav.2897 in India
I executed this piece of code
int x=8;
int k=~(x);
printf(%d",k)
output: 9
x=1000
~(x) =9 how?| Report Duplicate | Flag | PURGE
McAfee SDE1 C
Page:
1
Comment hidden because of low score. Click to expand.
Comment hidden because of low score. Click to expand.
0
of 0 vote
we should free the memory.otherwise memory leak will occur.
- gaurav.2897 October 04, 2012Page:
1
CareerCup is the world's biggest and best source for software engineering interview preparation. See all our resources.
Question is to negate each bit ,i.e 1000 should become 0111
- gaurav.2897 July 30, 2013