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

Can a binary search tree be used as an index? If yes, how? Explain

0 Answers   TCS,


pointer_variable=(typecasting datatype*)malloc(sizeof(datatype)); This is the syntax for malloc?Please explain this,how it work with an example?

2 Answers   eClerx, Excel, kenexa,


main is a predefined or user define function if user defined why? if predefined whay?

12 Answers   TCS,


how to capitalise first letter of each word in a given string?

0 Answers  


What is the use of gets and puts?

0 Answers  


In C, What is the #line used for?

2 Answers  


What is the use of printf() and scanf() functions?

0 Answers  


please can any one suggest me best useful video tutorials on c i am science graduate.please help me.u can email me to sas29@in.com

0 Answers  


What is array of structure in c programming?

0 Answers  


what are you see during placement time in the student.

0 Answers   Goldman Sachs, TCS, Tech Solutions,


How can I determine whether a machines byte order is big-endian or little-endian?

0 Answers  


Is there any demerits of using pointer?

0 Answers  


Categories