Friday, July 31, 2009

As it is a good practice that C# brought back the concept of GOTO statement and Pointer? If your answer is?

It may be down to taste but I think GOTO's should be left back in BASIC where they belong. :) Pointers are the bread and butter of c++ programming and a completely different animal.





C# is managed code and therefore any use of pointers is restricted to areas of code marked UNSAFE. Although not bad practice all use of unsafe code should be done with caution.

As it is a good practice that C# brought back the concept of GOTO statement and Pointer? If your answer is?
They are totally different. Pointers stores and adress of any data. Goto is related with process order of your code. In C# you dont need GOTO but if u want to make a loop or change the direction of the code u can use "break;" "continue;" or call functions.
Reply:Huh?





Pointers and GOTO statements are totally separate concepts.





GOTO statements usually result in lazy programming. In good OO design, there's no need for





In my opinion.

kudzu

No comments:

Post a Comment