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 |
main() { char *p = "hello world"; p[0] = 'H'; printf("%s", p); } a. Runtime error. b. “Hello world” c. Compile error d. “hello world”
void main() { int i=5; printf("%d",i++ + ++i); }
What is the difference between proc means and proc tabulate ? explain with a simple example when you have to use means or tabulate?
create a login program that ask username and password. if you input username or password 3 times wrong, the program will terminate else the program will prompt a message "congratulations"
main() { float i=1.5; switch(i) { case 1: printf("1"); case 2: printf("2"); default : printf("0"); } }
main() { char * strA; char * strB = I am OK; memcpy( strA, strB, 6); } a. Runtime error. b. I am OK c. Compile error d. I am O
main() { char *p; p="Hello"; printf("%c\n",*&*p); }
source code for delete data in array for c
What is wrong with the following code? int *foo() { int *s = malloc(sizeof(int)100); assert(s != NULL); return s; }
main() { int i=10; i=!i>14; Printf ("i=%d",i); }
main() { register int a=2; printf("Address of a = %d",&a); printf("Value of a = %d",a); }
String copy logic in one line.