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 hungarian notation? Is it worthwhile?

0 Answers  


What is a sequential access file?

0 Answers  


program to locate string with in a string with using strstr function

2 Answers   Huawei, Shreyas,


Can a local variable be volatile in c?

0 Answers  


main(){char *str;scanf("%s",str);printf("%s",str); }The error in the above program is: a) Variable 'str' is not initialised b) Format control for a string is not %s c) Parameter to scanf is passed by value. It should be an address d) none

0 Answers  


can we change the default calling convention in c if yes than how.........?

0 Answers   Aptech,


Explain high-order bytes.

0 Answers  


Explain the difference between the local variable and global variable in c?

0 Answers  


In a byte, what is the maximum decimal number that you can accommodate?

0 Answers  


Are negative numbers true in c?

0 Answers  


a sequence of bytes with one to one corrspondence to those in the external device a) sequential addressing b) address c) byte code d) none

0 Answers  


Can U write a C-program to print the size of a data type without using the sizeof() operator? Explain how it works inside ?

3 Answers   HCL, TCS,


Categories