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

jsp - No mapping found for HTTP request with URI with annotation config Spring MVC and Jetty -

c# - Roxy file manager in MVC doesn't accept session path -

java - Ajax call to jsp and jsp redirecting to further jsp -