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 is reason of your company position's in india no. 1.
What is the use of putchar function?
What is the benefit of using an enum rather than a #define constant?
Why we use conio h in c?
Tell me with an example the self-referential structure?
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
What is the translation phases used in c language?
What is f'n in math?
how to print the character with maximum occurence and print that number of occurence too in a string given ?
I heard that you have to include stdio.h before calling printf. Why?
How are pointers declared in c?
What is the data segment that is followed by c?
Subtract Two Number Without Using Subtraction Operator
In C language, a variable name cannot contain?
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