The Pointer?

to cast or not to cast

Page 1 of 1

14 Replies - 433 Views - Last Post: 10 May 2009 - 03:25 AM

#1 Kerrigan  Icon User is offline

  • New D.I.C Head

Reputation: 1
  • View blog
  • Posts: 18
  • Joined: 29-January 09

The Pointer?

Posted 08 May 2009 - 06:41 AM

Empty your memory
with a free()
like a pointer...

if you cast a integer to a pointer
it becomes the integer
if you cast a pointer to a struct
it becomes the struct...

The pointer can crash
and can overflow...

Be a pointer my friend..

This post has been edited by Kerrigan: 08 May 2009 - 06:42 AM

Is This A Good Question/Topic? 0
  • +

Replies To: The Pointer?

#2 BigAnt  Icon User is offline

  • May Your Swords Stay Sharp
  • member icon

Reputation: 101
  • View blog
  • Posts: 2,392
  • Joined: 16-August 08

Re: The Pointer?

Posted 08 May 2009 - 07:08 AM

What???
Was This Post Helpful? 0
  • +
  • -

#3 supersloth  Icon User is online

  • serial frotteur - RUDEST MEMBER ON D.I.C.
  • member icon


Reputation: 4503
  • View blog
  • Posts: 28,409
  • Joined: 21-March 01

Re: The Pointer?

Posted 08 May 2009 - 07:29 AM

yes.
Was This Post Helpful? 0
  • +
  • -

#4 Holden117  Icon User is offline

  • D.I.C Addict

Reputation: 0
  • View blog
  • Posts: 543
  • Joined: 16-February 08

Re: The Pointer?

Posted 08 May 2009 - 10:42 AM

You have any idea what he is saying wolfcoder?

This post has been edited by Holden117: 08 May 2009 - 10:43 AM

Was This Post Helpful? 0
  • +
  • -

#5 BenignDesign  Icon User is online

  • holy shitin shishkebobs
  • member icon




Reputation: 6011
  • View blog
  • Posts: 10,438
  • Joined: 28-September 07

Re: The Pointer?

Posted 08 May 2009 - 10:56 AM

http://www.youtube.c...h?v=fz3qDu0WemM
Was This Post Helpful? 0
  • +
  • -

#6 Raynes  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 611
  • View blog
  • Posts: 2,815
  • Joined: 05-January 09

Re: The Pointer?

Posted 08 May 2009 - 10:59 AM

What the hell.
Was This Post Helpful? 0
  • +
  • -

#7 Zerobu  Icon User is offline

  • Black Hatter

Reputation: 13
  • View blog
  • Posts: 1,822
  • Joined: 14-January 08

Re: The Pointer?

Posted 08 May 2009 - 11:11 AM

I think its a poem.
Was This Post Helpful? 0
  • +
  • -

#8 NickDMax  Icon User is offline

  • Can grep dead trees!
  • member icon

Reputation: 2250
  • View blog
  • Posts: 9,245
  • Joined: 18-February 07

Re: The Pointer?

Posted 08 May 2009 - 11:27 AM

I too think it is a poem... or at least poetically written philosophy?

I suppose that it is interesting -- neat if you are a C programmer -- but I am not sure the content really warrants much attention because the advice "be a pointer" does not seem like very good advice.

Though it does reminds me of the Tao Te Ching's, "be like water" mantra.
Was This Post Helpful? 0
  • +
  • -

#9 Nikhil_07n  Icon User is offline

  • The cheese stands alone..
  • member icon

Reputation: 49
  • View blog
  • Posts: 2,489
  • Joined: 09-January 09

Re: The Pointer?

Posted 08 May 2009 - 11:41 AM

Pathetic.
Was This Post Helpful? 0
  • +
  • -

#10 firebolt  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 92
  • View blog
  • Posts: 5,561
  • Joined: 20-February 09

Re: The Pointer?

Posted 08 May 2009 - 07:48 PM

Is this going to be closed?
Was This Post Helpful? 0
  • +
  • -

#11 NeoTifa  Icon User is online

  • Whorediot
  • member icon





Reputation: 2636
  • View blog
  • Posts: 15,661
  • Joined: 24-September 08

Re: The Pointer?

Posted 08 May 2009 - 08:15 PM

Yes.
Was This Post Helpful? 0
  • +
  • -

#12 KYA  Icon User is offline

  • g++ jameson.cpp -o beverage
  • member icon

Reputation: 3101
  • View blog
  • Posts: 19,141
  • Joined: 14-September 07

Re: The Pointer?

Posted 08 May 2009 - 08:45 PM

I doubt it.

I want to be like a dynamically casted variable.

This post has been edited by KYA: 08 May 2009 - 08:45 PM

Was This Post Helpful? 0
  • +
  • -

#13 Raynes  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 611
  • View blog
  • Posts: 2,815
  • Joined: 05-January 09

Re: The Pointer?

Posted 08 May 2009 - 09:58 PM

I want to be a parenthesis.
Was This Post Helpful? 0
  • +
  • -

#14 calvinthedestroyer  Icon User is offline

  • D.I.C Lover

Reputation: 167
  • View blog
  • Posts: 1,908
  • Joined: 13-October 07

Re: The Pointer?

Posted 09 May 2009 - 10:47 PM

very true my friend....

I want to be a matrix.
(not the movie, the code)
Was This Post Helpful? 0
  • +
  • -

#15 firebolt  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 92
  • View blog
  • Posts: 5,561
  • Joined: 20-February 09

Re: The Pointer?

Posted 10 May 2009 - 03:25 AM

I would be a dot. Always needed.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1