Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


main()

{

signed int bit=512, mBit;

{

mBit = ~bit;

bit = bit & ~bit ;

printf("%d %d", bit, mBit);

}

}

a. 0, 0

b. 0, 513

c. 512, 0

d. 0, -513

Answers were Sorted based on User's Feedback



main() { signed int bit=512, mBit; { mBit = ~bit; bit = bit & ~bit ; p..

Answer / guest

d)

Is This Answer Correct ?    33 Yes 0 No

main() { signed int bit=512, mBit; { mBit = ~bit; bit = bit & ~bit ; p..

Answer / soni

b

Is This Answer Correct ?    0 Yes 2 No

main() { signed int bit=512, mBit; { mBit = ~bit; bit = bit & ~bit ; p..

Answer / kumaran

a

Is This Answer Correct ?    4 Yes 8 No

Post New Answer

More C Code Interview Questions

why nlogn is the lower limit of any sort algorithm?

0 Answers  


#include<stdio.h> main() { char s[]={'a','b','c','\n','c','\0'}; char *p,*str,*str1; p=&s[3]; str=p; str1=s; printf("%d",++*p + ++*str1-32); }

2 Answers   CNSI,


void main() { static int i=i++, j=j++, k=k++; printf(ā€œi = %d j = %d k = %dā€, i, j, k); }

3 Answers  


Write a C program to add two numbers before the main function is called.

11 Answers   Infotech, TC,


int main() { int x=10; printf("x=%d, count of earlier print=%d", x,printf("x=%d, y=%d",x,--x)); getch(); } ================================================== returns error>> ld returned 1 exit status =================================================== Does it have something to do with printf() inside another printf().

2 Answers  


Give a one-line C expression to test whether a number is a power of 2.

10 Answers   Microsoft,


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 .

2 Answers  


main() { main(); }

1 Answers  


main() { int c=- -2; printf("c=%d",c); }

1 Answers   TCS,


void main() { char ch; for(ch=0;ch<=127;ch++) printf(ā€œ%c %d \nā€œ, ch, ch); }

1 Answers  


main() { struct student { char name[30]; struct date dob; }stud; struct date { int day,month,year; }; scanf("%s%d%d%d", stud.rollno, &student.dob.day, &student.dob.month, &student.dob.year); }

1 Answers  


union u { union u { int i; int j; }a[10]; int b[10]; }u; main() { printf("\n%d", sizeof(u)); printf(" %d", sizeof(u.a)); // printf("%d", sizeof(u.a[4].i)); } a. 4, 4, 4 b. 40, 4, 4 c. 1, 100, 1 d. 40 400 4

3 Answers   HCL,


Categories