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 the main difference between sizeof() operator in c and c++

3 Answers  


what is the use of template classes in c++

1 Answers  


What is byval and byref? What are differences between them?

0 Answers   HCL, Wipro,


Difference between new operator and operator new

2 Answers  


What is data binding?

4 Answers   Ittiam Systems,






write a program to find 2 power of a 5digit number with out using big int and exponent ?

0 Answers  


what is the difference between inter class and abstract class...?

0 Answers  


Is abstract thinking intelligence?

0 Answers  


Why many objects can working together? How objects working togetherM I want to see example code.

2 Answers  


Write a java applet that computes and displays the squares of values between 25 and 1 inclusive and displays them in a TextArea box

0 Answers  


What is difference between data abstraction and encapsulation?

0 Answers  


IN PROGRAMING LANGAUGE A C++ IS PURELY OBJECT ORIENTED OR NOT?

2 Answers  


Categories