InterviewSolution
Saved Bookmarks
| 1. |
Predict the output of following program. Assume that the numbers are stored in 2’s complement form.#include<stdio.h>int main(){unsigned int x = -1;int y = ~0;if (x == y)printf("same");elseprintf("not same");return 0;}(A) same(B) not same |
| Answer» | |