How does c# generics and c++ templates compare?


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More C Sharp Interview Questions

What is assembly and dll in c#?

0 Answers  


write the Syntax for Function or Method Overriding?

5 Answers   HCL,


How do I enforce const correctness in c#?

0 Answers  


State the top.NET class that everything is derived from?

0 Answers   Siebel,


Explain About Iunknown interface Queue

0 Answers   DELL,






What does private void mean in c#?

0 Answers  


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?

0 Answers  


Are arrays immutable c#?

0 Answers  


How can I use .NET components from COM programs?

0 Answers   DELL,


Is c# or c++ better for games?

0 Answers  


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?

2 Answers  


Categories