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.



C#.net Interview Question A=10 B=5 C=A+B Print C The above will be given in a multiline tex..

Answer / 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 4 No

Post New Answer

More OOPS Interview Questions

what is static?

4 Answers  


What is virtual constructors/destructors?

4 Answers   IBS,


Why we use classes in oop?

0 Answers  


what is difference between objects and function

1 Answers  


How do you explain polymorphism?

0 Answers  






How to overload new operator in c++

2 Answers  


what is the difference between containership and inheritence?

1 Answers  


What is data binding in oops?

0 Answers  


tel me oops defination in single line

2 Answers  


Can you name some types of inheritance?

0 Answers   Motorola,


what are the realtime excercises in C++?

0 Answers   IBM, Wipro,


How is polymorphism achieved?

0 Answers  


Categories