Wednesday 3 October 2012

Difference between Nil , nil and NULL

Difference between Nil , nil and NULL


nil is a null pointer to an Objective-C object
Nil is a null pointer to an Objective-C class. 
NULL is  a null pointer to anything else
 Actually all the three have the numeric value of 0.
  • nil == (id) 0 
  • Nil == (Class) 0 
  • NULL == (void *) 0 

simply can say that nil is a pointer to an object
    for example : 
     NSArray *array = [NSArray arrayWithObjects:@"karthik", @"prabhu", nil];

16 comments:

  1. Thanks for sharing this blog with us...
    Hvantage Technologies offer best Mobile app development and Web Development Services with affordable price. If anyone is required for these services visit as: www.hvantagetechnologies.com

    ReplyDelete
  2. Thanks for the post, you have provided a simple step by step process so anyone can understand easily. For understanding Mobile Application Services and Android Development, you can visit Yberry Infosystem in Indore Visit: www.yberryinfosystem.com

    ReplyDelete
  3. Thanks for the great Content; it was very informative and helpful.
    Android App Development

    ReplyDelete
  4. Thanks for sharing this blog with us...
    ITSWS Technologies offer best Mobile app development and Web Development Services with affordable price. If anyone is required for these services visit as: http://www.sonipat.itsws.com/

    SEO Company in Sonipat
    SEO Services in Sonipat

    ReplyDelete
  5. This comment has been removed by the author.

    ReplyDelete
  6. Maya michael dummett sempat tuliskan salah satunya artikel pendek di elemen game of tarot, di bercerita jika domino didapatkan di eropa pada era keempat belas atau di buat dengan indepenen
    asikqq
    dewaqq
    sumoqq
    interqq
    pionpoker
    bandar ceme terpercaya
    hobiqq
    paito warna oregon
    syair hk
    datahk

    ReplyDelete
  7. I must say, this is really an awesome post which you have shared in a simple and easy to grasp way. Surely I will share it in my post as we, to deliver the wonderful and well-researched information to my visitors too.

    online ordering system for restaurants
    Restaurant Website Ordering System
    Online Ordering Restaurant POS System

    ReplyDelete
  8. Very good post.
    All the ways that you suggested for find a new post was very good.
    will help you more:
    谷歌优化,baidu seo,谷歌seo,外贸网站建设,独立站引流,海外推广,web development outsourcing China ,web design ,web design China,谷歌推广,外贸英文网站建设,谷歌优化最牛的公司,谷歌排名,英文网站翻译,西安facebook营销,上海谷歌优化,上海谷歌seo,北京谷歌优化,facebook,北京谷歌seo
    google 外贸推广

    ReplyDelete
  9. This blog is really unique and informative.I really get amazed to read this. Web App Development Services

    ReplyDelete