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

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain About Assembly in .NET, types of assemblies, their difference, How to register into GAC. How to generate the strong names & its use.

788


Is inheritance possible in c sharp?

820


Explain the difference between const and static read-only?

696


What is the use of convert toint32 in c#?

698


What are console applications used for?

672


What are fields in c#?

657


What is a private class in c#?

675


How to declare a property in a class?

745


What is the difference between int.parse and int.tryparse methods?

740


What is sorted list in c#?

656


What debugging tools come with the .NET ssSDK?

948


Can a sealed class be used as a base class?

697


How long has c# been around?

724


What is expression tree with example?

654


Are there constructors in c sharp?

734