Click here to Skip to main content
15,916,042 members
Home / Discussions / C#
   

C#

 
Questioncall by reference Pin
kabutar18-Oct-07 19:20
kabutar18-Oct-07 19:20 
AnswerRe: call by reference Pin
N a v a n e e t h18-Oct-07 19:47
N a v a n e e t h18-Oct-07 19:47 
GeneralRe: call by reference Pin
kabutar18-Oct-07 19:52
kabutar18-Oct-07 19:52 
GeneralRe: call by reference Pin
Guffa18-Oct-07 21:27
Guffa18-Oct-07 21:27 
GeneralRe: call by reference Pin
N a v a n e e t h19-Oct-07 0:09
N a v a n e e t h19-Oct-07 0:09 
GeneralRe: call by reference Pin
Guffa19-Oct-07 8:39
Guffa19-Oct-07 8:39 
AnswerRe: call by reference [modified] Pin
N a v a n e e t h18-Oct-07 20:05
N a v a n e e t h18-Oct-07 20:05 
GeneralRe: call by reference Pin
kabutar18-Oct-07 20:27
kabutar18-Oct-07 20:27 
hi,
thanks a lot Navneeth ......your message realy helped.....i have altered the code a bit ......can you check and tell me whether my synatax is correct or not. i tried to run it and its running fine ....but i need your comment also....in the main function i made a slight alteration from yours.....plz check that and inform me


class Program
{
public static int Add(ref int x, ref int y)
{
int a = x; //saying that henceforth a will represent x
int b y ; //saying that henceforth b will represent y

int result = a + b;

Console.WriteLine("{0}", result);
return 10;

}
static void Main(string[] args)
{
int a = 10; //passing values to a and b
int b = 20;
int sum = Add(ref a,ref b);

Console.WriteLine("{0}", sum);
Console.ReadLine();
}
}
}






C#

GeneralRe: call by reference Pin
N a v a n e e t h18-Oct-07 20:34
N a v a n e e t h18-Oct-07 20:34 
GeneralRe: call by reference Pin
kabutar18-Oct-07 20:47
kabutar18-Oct-07 20:47 
GeneralRe: call by reference Pin
N a v a n e e t h18-Oct-07 20:57
N a v a n e e t h18-Oct-07 20:57 
GeneralRe: call by reference Pin
Trustapple18-Oct-07 21:03
Trustapple18-Oct-07 21:03 
GeneralRe: call by reference Pin
N a v a n e e t h18-Oct-07 21:22
N a v a n e e t h18-Oct-07 21:22 
GeneralRe: call by reference Pin
kabutar18-Oct-07 21:06
kabutar18-Oct-07 21:06 
AnswerRe: call by reference Pin
Malcolm Smart18-Oct-07 21:12
Malcolm Smart18-Oct-07 21:12 
QuestionHow to configure to OpenOffice through C# Pin
pashitech18-Oct-07 19:15
pashitech18-Oct-07 19:15 
QuestionHow to set entry point for an class [modified] Pin
Exelioindia18-Oct-07 19:11
Exelioindia18-Oct-07 19:11 
AnswerRe: How to set entry point for an class Pin
N a v a n e e t h18-Oct-07 19:26
N a v a n e e t h18-Oct-07 19:26 
Questionclasses inheritance Pin
kabutar18-Oct-07 18:54
kabutar18-Oct-07 18:54 
AnswerRe: classes inheritance Pin
N a v a n e e t h18-Oct-07 19:24
N a v a n e e t h18-Oct-07 19:24 
GeneralRe: classes inheritance Pin
kabutar18-Oct-07 19:38
kabutar18-Oct-07 19:38 
GeneralRe: classes inheritance Pin
N a v a n e e t h18-Oct-07 19:50
N a v a n e e t h18-Oct-07 19:50 
GeneralRe: classes inheritance Pin
Malcolm Smart18-Oct-07 21:23
Malcolm Smart18-Oct-07 21:23 
QuestionHow can I drawing over fullscreen ? Pin
Khoramdin18-Oct-07 18:53
Khoramdin18-Oct-07 18:53 
AnswerRe: How can I drawing over fullscreen ? Pin
Luc Pattyn19-Oct-07 3:18
sitebuilderLuc Pattyn19-Oct-07 3:18 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.