main()
{
printf("%x",-1<<4);
}
Answers were Sorted based on User's Feedback
Answer / susie
Answer :
fff0
Explanation :
-1 is internally represented as all 1's. When
left shifted four times the least significant 4 bits are
filled with 0's.The %x format specifier specifies that the
integer value be printed as a hexadecimal value.
| Is This Answer Correct ? | 120 Yes | 22 No |
Answer / sourab
thts ans is ture 4 16 bit compiler ,for 32 bit ans is fffffff0.
| Is This Answer Correct ? | 40 Yes | 9 No |
How we print the table of 3 using for loop in c programing?
main() { void swap(); int x=10,y=8; swap(&x,&y); printf("x=%d y=%d",x,y); } void swap(int *a, int *b) { *a ^= *b, *b ^= *a, *a ^= *b; }
Is the following statement a declaration/definition. Find what does it mean? int (*x)[10];
How can u say that a given point is in a triangle? 1. with the co-ordinates of the 3 vertices specified. 2. with only the co-ordinates of the top vertex given.
main() { char *p; p="Hello"; printf("%c\n",*&*p); }
char *someFun() { char *temp = “string constant"; return temp; } int main() { puts(someFun()); }
main() { 41printf("%p",main); }8
int DIM(int array[]) { return sizeof(array)/sizeof(int ); } main() { int arr[10]; printf(“The dimension of the array is %d”, DIM(arr)); }
What is the output for the following program main() { int arr2D[3][3]; printf("%d\n", ((arr2D==* arr2D)&&(* arr2D == arr2D[0])) ); }
print numbers till we want without using loops or condition statements like specifically(for,do while, while swiches, if etc)!
Can you send Code for Run Length Encoding Of BMP Image in C Language in linux(i.e Compression and Decompression) ?
int i=10; main() { extern int i; { int i=20; { const volatile unsigned i=30; printf("%d",i); } printf("%d",i); } printf("%d",i); }