Question 156
[Q.56] What will happen if a C program attempts to access an array out of bounds (arr[10] when size is 5)?
Detailed Solution
C does not perform runtime array boundary checks.
[Q.56] What will happen if a C program attempts to access an array out of bounds (arr[10] when size is 5)?
C does not perform runtime array boundary checks.
[Q.57] In OOP, hiding internal implementation details and showing only essential features is called:
Abstraction hides complex implementation details.
[Q.58] What is the size of a pointer in a 64-bit operating system?
On a 64-bit OS, memory addresses/pointers occupy 64 bits = 8 bytes.
[Q.59] In Java, strings are:
Java String objects cannot be modified once created.
[Q.60] Which operator in C cannot be overloaded in C++?
Operator ::, sizeof, ., and ?: cannot be overloaded in C++.