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
What are header files? What are their uses?
How can you increase the allowable number of simultaneously open files?
What is wrong with this program statement? void = 10;
process by which one bit patten in to another by bit wise operation is? (a) masking, (b) pruning, (c) biting, (d) chopping,
which of the following is allowed in a "C" arithematic instruction a) [] b) {} c) () d) none of the above
What does *p++ do?
How can I find out if there are characters available for reading?
What is main return c?
"%u" unsigned integer print the a) address of variable b) value of variable c) name of a variable d) none of the above
What is meant by type casting?
please explain clearly about execution of c program in detail,in which stage are the printf sacnf getting into exeecutable code
Write a program for finding factorial of a number.
Write a C++ program to generate 10 integer numbers between - 1000 and 1000, then store the summation of the odd positive numbers in variable call it sum_pos, then find the maximum digit in this variable regardless of its digits length.
What is the size of empty structure in c?
Define VARIABLE?