c - Why casting NULL to a struct pointer? -


इस फ़ंक्शन में:

  omapi_object_t * inner; यदि (वस्तु) {waiter = (omapi_waiter_object_t *) 0; ....   

0 को एक omapi_waiter_object_t पॉइंटर के लिए उद्धृत किया जा रहा है। उद्देश्य क्या है?

मुझे पता है कि एक समान प्रश्न मौजूद है:, लेकिन इसका जवाब मैक्रो का उपयोग करने की वैधता के बारे में है। मेरे मामले में, कोई मैक्रो शामिल नहीं है मैं जानना चाहता हूं कि ऐसा क्यों किया जाता है।

कभी-कभी लोग बस बेकार कोड लिखते हैं।

वास्तव में कलाकारों को लिखने में कोई मतलब नहीं है।

Comments

Popular posts from this blog

Selenium IDE Conditional Statements -

sql - Select count and aggregate, but only unique -

ruby on rails - How to avoid ActionController::InvalidCrossOriginRequest exception? -