Select the correct option to test your answer:
Computer
Operators And Expressions In C Sharp
Difficulty: Medium
What will be the output of the following C# code? static void Main(string[] args) { byte varA = 10; byte varB = 20; long result = varA & varB; Console.WriteLine("{0} AND {1} Result :{2}", varA, varB, result); varA = 10; varB = 10; result = varA & varB; Console.WriteLine("{0} AND {1} Result : {2}", varA, varB, result); Console.ReadLine(); }
More Computer Questions
In C, what is the value of a pointer variable if it hasn't been assigned any address?
What is the default value of a bool in C# if not explicitly initialized?
#include <somefile.h> are . . . . . . . . files and #include "somefile.h" . . . . . . . . files.
What will be the output of the following C code? #include <stdio.h> int main() { int x = 2; x = x << 1; printf("%d\n", x); }
What is output of print(math.pow(3, 2))?