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...


control 50 devices which has 2 states on and off.using
bitwise operator.plz answer it its urgent



control 50 devices which has 2 states on and off.using bitwise operator.plz answer it its urgent..

Answer / vishnu

int main()
{
int dev[50];
int i;
int k=1;
for(i=0;i<50;i++)
{
k =1^k;
dev[i]= k;
printf("%d",k);
}


return 0;
}

Is This Answer Correct ?    0 Yes 1 No

Post New Answer

More C Interview Questions

What is a 'null pointer assignment' error?

0 Answers  


write a program which counts a product of array elements lower than 10.

1 Answers  


What is c language & why it is used?

0 Answers  


what is the difference between NULL('\0') and 0?

14 Answers   Microsoft,


what will be the output for the following program? main() { char ch = 'k'; char c; printf("%c",c); }

3 Answers  


how to TOGGLE Nth bit of variable in a MACRO

1 Answers   NDS,


what is the difference between. system call and library function?

2 Answers   CDAC, Satyam,


Why c is called object oriented language?

0 Answers  


c pgm count no of lines , blanks, tabs in a para(File concept)

2 Answers  


if the address of a[1,1] and a[2,1] are 1000 and 1010 respectively and each occupies 2 bytes then the array has been stored in what order?

4 Answers   Amazon, Apple, Bata, Google, NASA,


Explain how do you sort filenames in a directory?

0 Answers  


Explain enumerated types.

0 Answers  


Categories