Home / MCQ Bank / Computer
Computer Arrays And Strings In C Sharp Difficulty: Medium

What will be the output of the following C# code? class Program { static void Main(string[] args) { String s1 = "I love You"; String s2 = s1; Console.WriteLine((s1 == s2) + " " + s1.Equals(s2)); Console.ReadLine(); } }

Select the correct option to test your answer:

More Computer Questions

Which function is used to position back from the end of file object? What will be the output of the following C code? #include <stdio.h> typedef struct p { int x, y; }k; int main() { struct p p = {1, 2}; k k1 = p; printf("%d\n", k1.x); } What will be the output of the following Python code? import turtle t=turtle.Pen() t.goto(300,9) t.position() What are the actual parameters in C++? Which of these is the interface of legacy?