Write a program using bitwise operators to invert even bits of
a given number.
Answer Posted / ayaskanta
Use Xor operation. Xor ing with 1 coverts a 0 to 1 and a 1
to zero...
| Is This Answer Correct ? | 3 Yes | 3 No |
Post New Answer View All Answers
write a program that will open the file, count the number of occurences of each word in the the complete works of shakespeare. You will then tabulate this information in another file.
What is the method to save data in stack data structure type?
What does volatile do?
What are loops in c?
Which one to choose from 'initialization lists' or 'assignment', for the use in the constructor?
write a c program to print the next of a particular no without using the arithmetic operator or looping statements?
What is 1f in c?
What are the preprocessor categories?
How do you list a file’s date and time?
What is malloc return c?
How many identifiers are there in c?
What is a good data structure to use for storing lines of text?
Explain what is a 'locale'?
can we change the default calling convention in c if yes than how.........?
.find the output of the following program? char*myfunc(char*ptr) { ptr +=3; return (ptr); } int main() { char*x,*y; x="HELLO"; y=myfunc(x); printf("y = %s ",y); return 0; }