Back-End Programming Exam  >  Back-End Programming Videos  >  C Programming for Beginners: From Zero to Hero (in Hindi)  >  Lecture 21 Preprocessor Command #include in C Language Hindi

Lecture 21 Preprocessor Command #include in C Language Hindi Video Lecture | C Programming for Beginners: From Zero to Hero (in Hindi) - Back-End Programming

FAQs on Lecture 21 Preprocessor Command #include in C Language Hindi Video Lecture - C Programming for Beginners: From Zero to Hero (in Hindi) - Back-End Programming

1. Preprocessor कमांड #include क्या है?
Ans. #include प्रीप्रोसेसर कमांड C भाषा में उपयोग की जाती है और इसका उद्देश्य अन्य फ़ाइलों को मैन फ़ाइल में सम्मिलित करना होता है। इसका उपयोग करके हम अन्य हेडर फ़ाइलों को सम्मिलित कर सकते हैं ताकि हम उन फ़ाइलों में विभिन्न संपूर्णताएं, मैक्रोस और फ़ंक्शन्स का उपयोग कर सकें।
2. #include कमांड कैसे काम करता है?
Ans. #include कमांड कार्यक्रम को उन फ़ाइलों के सामग्री को सम्मिलित करने के लिए प्रोजेक्ट में बदलता है जिन्हें इंगित किया जाता है। प्रोग्राम कंपाइलर या प्रीप्रोसेसर ऐसी फ़ाइलों की खोज करेगा और उन्हें मैन फ़ाइल में सम्मिलित करेगा, अन्यथा कार्यक्रम को कम्पाइल करते समय त्रुटियों का सामना करना पड़ सकता है।
3. #include कमांड की आवश्यकता क्यों होती है?
Ans. #include कमांड की आवश्यकता इसलिए होती है क्योंकि इससे हम अन्य फ़ाइलों में लिखे गए विभिन्न संपूर्णताएं, मैक्रोस और फ़ंक्शन्स का उपयोग कर सकते हैं। इससे हमारे कार्यक्रम को अधिक मुद्रणीय बनाने में मदद मिलती है और हमारे कोड को रीयूज़ करने में भी सहायता प्रदान करती है।
4. क्या हम एक ही फ़ाइल को एकाधिक बार #include कर सकते हैं?
Ans. हां, हम एक ही फ़ाइल को एकाधिक बार #include कर सकते हैं। हालांकि, इससे दोहरी प्रतिपूर्ति की समस्या हो सकती है, जो त्रुटियों का कारण बन सकती है। इसलिए, हमेशा ध्यान देना चाहिए कि हम किसी फ़ाइल को केवल एक बार ही सम्मिलित करें।
5. #include <filename> और #include "filename" में क्या अंतर है?
Ans. #include <filename> और #include "filename" में एक अंतर है। #include <filename> को इन्कलूड डायरेक्टिव कहा जाता है और यह सिस्टम पथ के लिए फ़ाइल को खोजेगा, जबकि #include "filename" को इन्कलूड संदर्भ कहा जाता है और यह वर्तमान डिरेक्टरी में फ़ाइल को खोजेगा। दोनों का उपयोग किसी भी फ़ाइल को सम्मिलित करने के लिए किया जा सकता है, लेकिन उनका उपयोग आपकी सिस्टम कॉन्फ़िगरेशन पर निर्भर करेगा।
Related Searches

Sample Paper

,

practice quizzes

,

study material

,

ppt

,

Viva Questions

,

Summary

,

MCQs

,

Lecture 21 Preprocessor Command #include in C Language Hindi Video Lecture | C Programming for Beginners: From Zero to Hero (in Hindi) - Back-End Programming

,

Objective type Questions

,

Previous Year Questions with Solutions

,

shortcuts and tricks

,

Lecture 21 Preprocessor Command #include in C Language Hindi Video Lecture | C Programming for Beginners: From Zero to Hero (in Hindi) - Back-End Programming

,

Lecture 21 Preprocessor Command #include in C Language Hindi Video Lecture | C Programming for Beginners: From Zero to Hero (in Hindi) - Back-End Programming

,

Semester Notes

,

Important questions

,

past year papers

,

video lectures

,

Exam

,

pdf

,

mock tests for examination

,

Free

,

Extra Questions

;