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 hungarian notation? Is it worthwhile?
What is a sequential access file?
program to locate string with in a string with using strstr function
Can a local variable be volatile in c?
main(){char *str;scanf("%s",str);printf("%s",str); }The error in the above program is: a) Variable 'str' is not initialised b) Format control for a string is not %s c) Parameter to scanf is passed by value. It should be an address d) none
can we change the default calling convention in c if yes than how.........?
Explain high-order bytes.
Explain the difference between the local variable and global variable in c?
In a byte, what is the maximum decimal number that you can accommodate?
Are negative numbers true in c?
a sequence of bytes with one to one corrspondence to those in the external device a) sequential addressing b) address c) byte code d) none
Can U write a C-program to print the size of a data type without using the sizeof() operator? Explain how it works inside ?