justin = { main feed , music , code , askjf , pubkey };
Ask Justin Frankel
No reasonable question unanswered since 2009!

Suggested topics: programming, music, sleep, coffee, etc.

Note: please do not ask questions about REAPER features, bugs or scheduling, use the forums instead.


Name: Ask: Human (enter yes):
[back to index] | [unreplied] | [replied] | [recent comments] | [all]

Question: What's your preference on null pointers convention: char *p=0 or char *p=NULL? And why?
Asked by Rodrigo (187.112.69.x) on November 12 2012, 10:57pm
Reply on November 14 2012, 10:41pm:
    I'd prefer NULL. Ideally the compiler should warn or prevent you from doing =0, and from assigning NULL to an integer. That'd be nice for catching errors, especially for function parameters...

Comment:
    Your Name:   -- Site Owner's Name:  (for human-verification)

    Comment:    

    
  
[back to index] | [unreplied] | [replied] | [recent comments] | [all]
Copyright 2025 Justin Frankel. | RSS