ChiaFong

Where’s my pointer!

In Programming on 26 April, 2006 at 10:40 am

The single most baffling thing about changing to program in C# from C++ is that pointer is not recommended.  So it will take some time to get use to it.  Especially when a lot of algorithm is base on using pointer to access certain data structure.

C# still contain pointer, in fact the syntax is exactly the same as that in C++, just that it is consider unsafe to use pointer.  Your program might access some invalid address using pointer method causing access violation and thus this is consider unsafe by C#.

I hope I can really manage to do without pointer.  I really hope so.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: