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 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() { extern int i; i=20; printf("%d",i); }
struct point { int x; int y; }; struct point origin,*pp; main() { pp=&origin; printf("origin is(%d%d)\n",(*pp).x,(*pp).y); printf("origin is (%d%d)\n",pp->x,pp->y); }
plz send me all data structure related programs
main() { char c=' ',x,convert(z); getc(c); if((c>='a') && (c<='z')) x=convert(c); printf("%c",x); } convert(z) { return z-32; }
main() { printf("\nab"); printf("\bsi"); printf("\rha"); }
#define a 10 int main() { printf("%d..",a); foo(); printf("%d..",a); return 0; } void foo() { #undef a #define a 50 }
Is the following code legal? typedef struct a { int x; aType *b; }aType
main( ) { int a[2][3][2] = {{{2,4},{7,8},{3,4}},{{2,2},{2,3},{3,4}}}; printf(ā%u %u %u %d \nā,a,*a,**a,***a); printf(ā%u %u %u %d \nā,a+1,*a+1,**a+1,***a+1); }
main() { char a[4]="HELL"; printf("%s",a); }
main() { int *j; { int i=10; j=&i; } printf("%d",*j); }
write a c program to Create a mail account by taking the username, password, confirm password, secret_question, secret_answer and phone number. Allow users to register, login and reset password(based on secret question). Display the user accounts and their details .