How does c# generics and c++ templates compare?
No Answer is Posted For this Question
Be the First to Post Answer
What is assembly and dll in c#?
write the Syntax for Function or Method Overriding?
How do I enforce const correctness in c#?
State the top.NET class that everything is derived from?
Explain About Iunknown interface Queue
What does private void mean in c#?
How can i load the text box and label at the runtime based on the existing text box and tabel
2 Answers Merrill Lynch, Patni,
Why do we use classes?
Are arrays immutable c#?
How can I use .NET components from COM programs?
Is c# or c++ better for games?
i have a question which is quite simple but yet complicated for me my question is why do we use void, if it does not return anything to the compiler? if it is used for normal display it can also be done by what is called Console.Write() or Consol.WriteLine() and if i do not use void with my method then my compiler throws me an error. if i return a value say integer then i write public int fun() display of the result can also be done here then why is it so necessary to use void with a function and why so compiler throw us an error if v don't use void return type?