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

What is shared inheritance

3 Answers   IGT,


What is difference between value and reference types ?

4 Answers   Accenture,


why instance? what are the uses of instance?

3 Answers   Choice Solutions,


What is difference between list and ilist in c#?

0 Answers  


What is a string? What are the properties of a string class?

1 Answers  


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

3 Answers   HCL,


What namespaces are necessary to create a localized application?

1 Answers  


Why do we use generics in c#?

0 Answers  


How?s method overriding different from overloading?

3 Answers  


Where do you add an event handler ?

1 Answers  


What is Named parameter in C#?

0 Answers  


what are the differences b/w structure and class?

10 Answers  


Categories