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 are the Advantages of using macro
How do you determine a file’s attributes?
How is a pointer variable declared?
Write a program to implement queue.
Write a program to identify if a given binary tree is balanced or not.
When can a far pointer be used?
What are nested functions in c?
What is pointers in c?
write a program for egyptian fractions in c?
Why ordinary variable store only one value
Can two or more operators such as and be combined in a single line of program code?
PROGRAM TO WRITE CONTENTS OF 1 FILE IN REVERSE TO ANOTHER FILE,PROGRAM TO COPY 1 FILE TO ANOTHER BY SPECIFYING FILE NAMES AS COMMAND LINE