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 to Develope the CRUD(create,read,update,delete) FORM IN WINDOWS form by using c# only

0 Answers   Petranics Solutions,


How do you specify a custom attribute for the entire assembly?

0 Answers  


What is the difference between namespace and class in c#?

0 Answers  


What is the output of TextWriterTraceListener redirected?

0 Answers   Siebel,


What does console readline do in c#?

0 Answers  






Is null == null c#?

0 Answers  


what are delegates? How you used then in your project?

10 Answers   Hawk Eye, IndiaTimes, Kanbay,


What is alias in c#?

0 Answers  


How is a strongly-named assembly different from one that isn’t strongly-named?

0 Answers  


Is datetime value type c#?

0 Answers  


Is var a data type?

0 Answers  


what is the fastest way to concatenate strings in c sharp?

4 Answers   HCL,


Categories