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
What does typedef struct mean?
When is a “switch” statement preferable over an “if” statement?
What is file in c language?
What are the types of data types and explain?
What does %d do in c?
Why array is used in c?
What is the sizeof () operator?
#include
Why is it usually a bad idea to use gets()? Suggest a workaround.
Is array a primitive data type in c?
Write an algorithm for implementing insertion and deletion operations in a singly linked list using arrays ?
An arrangement of information in memory in such a way that it can be easily accessed and processed by a programming language a) string b) data structure c) pointers d) array
What are the disadvantages of a shell structure?
the statement while(i) puts the entire logic in loop. this loop is called a) indefinite loop b) definite loop c) loop syntax wrong d) none of the above
What are pointers? What are stacks and queues?