Question
1.
2.
3.
4.
Answer (Detailed Solution Below)
Option 1 : 8 bytes / 8 बाइट
Advertisement
Detailed Solution
सही उत्तर 8 bytes / 8 बाइट है।
Key Points
Helpful?
Question:
On a typical 64-bit Linux system (LP64 data model), what is `sizeof(long)`? / एक typical 64-बिट Linux सिस्टम (LP64 डेटा मॉडल) पर `sizeof(long)` क्या होता है?
1.
8 bytes / 8 बाइट
2.
4 bytes / 4 बाइट
3.
16 bytes / 16 बाइट
4.
2 bytes / 2 बाइट
Correct Answer: 8 bytes / 8 बाइट
Under LP64 (used by 64-bit Linux/Unix), `long` and pointers are 64 bits, so `sizeof(long)` is 8. The trap option 4 bytes comes from the Windows LLP64 model, where `long` stays 32 bits. / LP64 (64-बिट Linux/Unix) में `long` और पॉइंटर 64-बिट होते हैं, अतः `sizeof(long)` 8 है। 4 बाइट वाला जाल Windows के LLP64 मॉडल से आता है, जहाँ `long` 32-बिट ही रहता है।
Downloaded from PrepSnap (prepsnap.in)