Write a functin to add two no. Both no can be int, float.

Answers were Sorted based on User's Feedback



Write a functin to add two no. Both no can be int, float...

Answer / mithun

public double Add(double a, double b)
{
double c =a + b;
return c;
}

Is This Answer Correct ?    13 Yes 1 No

Write a functin to add two no. Both no can be int, float...

Answer / gopathi vamseedhar

public int fname(int a,int b)
{
int c;
c=a+b;
messagebox.show("answer"+c);
}

Is This Answer Correct ?    5 Yes 11 No

Write a functin to add two no. Both no can be int, float...

Answer / aaaa

public int fname(int a,int b)
{
int c;
c=a+b;
messagebox.show("answer"+c);
return(c);
}

Is This Answer Correct ?    1 Yes 8 No

Post New Answer

More C Sharp Interview Questions

What are Uses of CLR

0 Answers   TCS,


What is meant by console programming?

0 Answers  


Is linkedhashset synchronized?

0 Answers  


How to use session under class file of APP_Code folder?

0 Answers   ADITI,


Why are strings immutable c#?

0 Answers  






What is an assembly in .net?

0 Answers  


What is singleordefault?

0 Answers  


What are the types of class in c#?

0 Answers  


What are examples of desktop applications?

0 Answers  


Which are the loop types available in c#?

0 Answers  


Assignment # 1 Print the pattern given below using single printf statement XX XX XX XX XX XX X X X X XX XX XX XX XX XX Assignment # 2 Print the pattern given below using single printf statement (please do NOT use the string function below) 0 909 89098 7890987 678909876 56789098765 4567890987654 345678909876543 23456789098765432 1234567890987654321

3 Answers   Wipro,


What are partial types in c#?

0 Answers  


Categories