On Apr 12, 4:30 pm, Decipher <[email protected]> wrote:

> Q3) How is NULL defined in C ? What's the difference between #define NULL
> (void *)0 and #define NULL 0 .

The difference could be in the size of integer type. A pointer to
address zero, (void *)0, should be 32 or 64 bits, depending on the
architecture. A macro for zero should be the integer type (typically
32 bits), again depending on the architecture.

Please correct me if I'm wrong.

PS. I'm an ex-BRCM. Except for Q2, these questions were not raised. I
remember system-level questions related to instruction pipelining,
branch hazards and codecs (I applied for a audio-video job). The other
C-language question had to do with out-of-bounds errors in array
access.

-- 
You received this message because you are subscribed to the Google Groups 
"Algorithm Geeks" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.

Reply via email to