MCQOPTIONS
Saved Bookmarks
| 1. |
What will be the output of the given code snippet? class equality { public int x; public int y; public Boolean isequal() { return (x == y); } } class Program { static void Main(string[] args) { equality obj = new equality(); obj.x = 5; obj.y = 5; Console.WriteLine(obj.isequal()); Console.ReadLine(); } } |
| A. | False |
| B. | True |
| C. | 0 |
| D. | 1 |
| Answer» C. 0 | |