C#.net Interview Question
A=10
B=5
C=A+B
Print C
The above will be given in a multiline textbox. You need to
parse the above input, store values for A,B&c. And you have
to display the value of C.
Answer Posted / murthyknm
public class Sum
{
public static void main(String aaa[])
{
int A=10,B=5,C=0;
C=A+B;
System.out.println(" "+C);
}
}
| Is This Answer Correct ? | 1 Yes | 5 No |
Post New Answer View All Answers
What does and I oop mean in text?
if i have same function with same number of argument but defined in different files. Now i am adding these two files in a third file and calling this function . which will get called and wht decide the precedence?
How do you define a class in oop?
What is overriding vs overloading?
What is polymorphism explain?
What is an advantage of polymorphism?
What is class and object with example?
can inline function declare in private part of class?
Why is destructor used?
What are the 3 principles of oop?
What do you mean by Encapsulation?
What is the problem with multiple inheritance?
What is data binding in oops?
How do you use inheritance in unity?
What is this pointer in oop?