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 |
What is a 'null pointer assignment' error?
write a program which counts a product of array elements lower than 10.
What is c language & why it is used?
what is the difference between NULL('\0') and 0?
what will be the output for the following program? main() { char ch = 'k'; char c; printf("%c",c); }
how to TOGGLE Nth bit of variable in a MACRO
what is the difference between. system call and library function?
Why c is called object oriented language?
c pgm count no of lines , blanks, tabs in a para(File concept)
if the address of a[1,1] and a[2,1] are 1000 and 1010 respectively and each occupies 2 bytes then the array has been stored in what order?
4 Answers Amazon, Apple, Bata, Google, NASA,
Explain how do you sort filenames in a directory?
Explain enumerated types.