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

How C# 4.0 supports dynamic programming language?

0 Answers  


What is integer c#?

0 Answers  


What can I create with c#?

0 Answers  


Can we change static value in c#?

0 Answers  


What is sealed class in c#?

0 Answers  






What is inheritance in csharp?

0 Answers  


What happens if the inherited interfaces have conflicting method names?

0 Answers  


What is .dbml file?

0 Answers  


What is difference between const and static in c#?

0 Answers  


Can you store multiple data types in System.Array?

20 Answers   Satyam, Siebel Systems,


What is the difference between a constant and a static readonly field?

0 Answers  


What is the difference between ref & out parameters?

2 Answers  


Categories