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 encapsulation and abstraction defined/used in C#.NET.

8 Answers   Synechron,


What is private and shared assembly?

0 Answers  


What is generic types in c#?

0 Answers  


What is the meaning of int parse in c#?

0 Answers  


State two different types of access modifiers.

0 Answers  






What are data types with examples?

0 Answers  


How do you determine whether a string represents a numeric value?

0 Answers  


in object oriented programming, how would you describe encapsulation?

0 Answers   Siebel Systems,


Describe how a .net application is compiled and executed

0 Answers  


What benefit do you get from using a primary interop assembly (pia)?

0 Answers  


Is constructor a static method?

0 Answers  


How do you secure a webservice?

1 Answers   TCS,


Categories