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

Explain what is the difference between a free-standing and a hosted environment?

1186


What is the difference between a string copy (strcpy) and a memory copy (memcpy)? When should each be used?

1128


Explain how can I right-justify a string?

1046


How the c program is executed?

1159


Given below are three different ways to print the character for ASCII code 88. Which is the correct way1) char c = 88; cout << c << " ";2) cout.put(88);3) cout << char(88) << " "; a) 1 b) 2 c) 3 d) constant

1158


Explain the process of converting a Tree into a Binary Tree.

2669


which type of aspect you want from the student.

2166


Are negative numbers true in c?

1069


What does c value mean?

1200


What is the difference between char array and char pointer?

1058


write a c program to calculate sum of digits till it reduces to a single digit using recursion

3312


Do you have any idea about the use of "auto" keyword?

1090


What is break statement?

1124


What is the use of a semicolon (;) at the end of every program statement?

1515


Write a program to swap two numbers without using third variable in c?

1133