Free help with homework

Why join Brainly?

  • ask questions about your assignment
  • get answers with explanations
  • find similar questions

Discuss the significance of BITWISE operators in C (10 Marks)

programming language. Also, write an interactive C program to
illustrate them



main( )
unsigned int a=60;
unsigned int b=13;
int c=0;

printf("Q1-value of c is %d\n",c);

c= a|b;
printf("Q2- value of c is %d\n",c);

c= a^b;
printf("Q3-value of c is %d\n",c);

printf("Q4-value of c is %d\n",c);

printf("Q4-value of c is %d\n",c);

printf("Q5- value of c is %d \n",c);

when we compile and execute the above program it produces the following result:
Q1- value of c is 12.
Q2- value of c is 61.
Q3- value of c is 49.
Q4- value of c is 61.
Q5- value of c is 240.
Q6- value of c is 15.
0 0 0
please mark as the brainliest answer
The Brain
  • The Brain
  • Helper
Not sure about the answer?
Learn more with Brainly!
Having trouble with your homework?
Get free help!
  • 80% of questions are answered in under 10 minutes
  • Answers come with explanations, so that you can learn
  • Answer quality is ensured by our experts