Physics · C Programming
'पास बाई रेफरेंस' (pass by reference) तंत्र का एक नुकसान यह है कि कॉल किया गया फ़ंक्शन अनजाने में कॉलर के डेटा को संशोधित कर सकता है। C++ में, रेफरेंस पासिंग तंत्र को बनाए रखते हुए इस साइड इफेक्ट को कैसे रोका जा सकता है?
- 1फ़ंक्शन कॉल को मैक्रो के अंदर लपेटकर
- 2एक्चुअल पैरामीटर्स (actual parameters) को 'const' घोषित करके
- 3फॉर्मल पैरामीटर्स (formal parameters) को 'const' घोषित करके✓
- 4रेफरेंस के बजाय पॉइंटर्स पास करके
सही उत्तर देखें
फॉर्मल पैरामीटर्स (formal parameters) को 'const' घोषित करके
Download Single Question PDF
Save this question and verified answer as a clean study sheet with live clickable link.
Share with Friends & Study Groups
Challenge your peer aspirants on WhatsApp or Telegram to solve this question!
Preparing for Physics?
Practice full-length mock tests with real exam timers, instant score analysis, and all-India ranking.
Want more practice questions on C Programming?
Solve complete topic-wise tests with detailed solutions on GkGet.
Related Practice Questions
Recommended practice questions in Physics · C Programming