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

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

What are header files? What are their uses?

1284


How can you increase the allowable number of simultaneously open files?

1210


What is wrong with this program statement? void = 10;

1312


process by which one bit patten in to another by bit wise operation is? (a) masking, (b) pruning, (c) biting, (d) chopping,

2473


which of the following is allowed in a "C" arithematic instruction a) [] b) {} c) () d) none of the above

1784


What does *p++ do?

1076


How can I find out if there are characters available for reading?

1165


What is main return c?

1050


"%u" unsigned integer print the a) address of variable b) value of variable c) name of a variable d) none of the above

1071


What is meant by type casting?

1106


please explain clearly about execution of c program in detail,in which stage are the printf sacnf getting into exeecutable code

2227


Write a program for finding factorial of a number.

1142


Write a C++ program to generate 10 integer numbers between - 1000 and 1000, then store the summation of the odd positive numbers in variable call it sum_pos, then find the maximum digit in this variable regardless of its digits length.

2056


What is the size of empty structure in c?

1127


Define VARIABLE?

1234