Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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 many bytes is a char c#?

0 Answers  


what is the difference between finally and dispose methods?

3 Answers   HCL, Patni,


How can I get around scope problems in a try/catch?

0 Answers  


What is escape sequence in c#?

0 Answers  


Should I make my destructor virtual?

0 Answers  


What is the difference between static class and singleton class in c#?

0 Answers  


Explain the top reason to use c# language?

0 Answers  


How does the lifecycle of Windows services differ from Standard EXE?

0 Answers   Siebel Systems,


Explain the difference between access specifier and access modifier in c#?

0 Answers  


Is vs as c#?

0 Answers  


Who benefits from ajax?

0 Answers  


How can you clean up objects holding resources from within the code?

2 Answers   L&T, Wipro,


Categories