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
Explain what is the difference between a free-standing and a hosted environment?
What is the difference between a string copy (strcpy) and a memory copy (memcpy)? When should each be used?
Explain how can I right-justify a string?
How the c program is executed?
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
Explain the process of converting a Tree into a Binary Tree.
which type of aspect you want from the student.
Are negative numbers true in c?
What does c value mean?
What is the difference between char array and char pointer?
write a c program to calculate sum of digits till it reduces to a single digit using recursion
Do you have any idea about the use of "auto" keyword?
What is break statement?
What is the use of a semicolon (;) at the end of every program statement?
Write a program to swap two numbers without using third variable in c?