1

Possible Duplicate:
Sending a message to nil?

what happens when we invoke a method on a nil pointer

Community
  • 1
  • 1
rambabu459
  • 121
  • 2
  • 10

1 Answers1

2

It returns 0, nil, a structure filled with 0s, etc.

Sending Messages to nil

ughoavgfhw
  • 39,734
  • 6
  • 101
  • 123