Question
#include <stdio.h>
int main()
{
int a = 1, b = 2;
int c = a ^ b & 1;
printf(""%d
"", c);
}
a.
0
b.
1
c.
2
d.
3
Posted under C Programming
Engage with the Community - Add Your Comment
Confused About the Answer? Ask for Details Here.
Know the Explanation? Add it Here.
Q. What will be output for the following code?
Similar Questions
Discover Related MCQs
Q. Which of the following has same Precedence?
A. ++
B. ->
C. !
View solution
Q. Identify wrong C Keywords below.
View solution
Q. Find a correct C Keyword below.
View solution
Q. Find a correct C Keyword.
View solution
Q. Types of Integers are
View solution
Q. Types of Real numbers in C are
View solution
Q. signed and unsigned representation is available for
View solution
Q. Size of a Turbo C C++ compiler is
View solution
Q. Size of a GCC or Visual Studio C Compiler is
View solution
Q. Sizes of short, int and long in a Turbo C C++ compiler in bytes are
View solution
Q. Sizes of short, int and long in Visual Studio or GCC compiler in bytes are
View solution
Q. Range of signed char and unsigned char are
View solution
Q. Ranges of signed int and unsigned int are
View solution
Q. Size of float, double and long double in Bytes are
View solution
Q. Range of singed long and unsigned long variables are
View solution
Q. Range of float variable is
View solution
Q. Left most bit 0 in Singed representation indicates
View solution
Q. If you do not specify a storage class for a Variable
View solution
Q. What is a C Storage Class?
View solution
Q. Every C Variable must have
View solution
Suggested Topics
Are you eager to expand your knowledge beyond C Programming? We've curated a selection of related categories that you might find intriguing.
Click on the categories below to discover a wealth of MCQs and enrich your understanding of Computer Science. Happy exploring!