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 is reason of your company position's in india no. 1.

2346


What is the use of putchar function?

1062


What is the benefit of using an enum rather than a #define constant?

1248


Why we use conio h in c?

1245


Tell me with an example the self-referential structure?

1039


in any language the sound structure of that language depends on its a) character set, input/output function, its control structures b) character set, library functions, input/output functions its control structures c) character set, library functions, control sturctures d) character set, operators, its control structures

1214


What is the translation phases used in c language?

1125


What is f'n in math?

1079


how to print the character with maximum occurence and print that number of occurence too in a string given ?

2481


I heard that you have to include stdio.h before calling printf. Why?

1077


How are pointers declared in c?

1071


What is the data segment that is followed by c?

1095


Subtract Two Number Without Using Subtraction Operator

859


In C language, a variable name cannot contain?

1282


what are the program that using a two dimensional array that list the odd numbers and even numbers separately in a given 10 inputs values

1708