πŸ“Š C++
Q. Output of this program will be
Code:
#include
using namespace std;
int main()
{
int a = 5, b = 10, c = 15;
int arr[3] = {&a, &b, &c};
cout << *arr[*arr[1] – 8];
return 0;
}
  • (A) 18
  • (B) 15
  • (C) garbage value
  • (D) compile time error
πŸ’¬ Discuss
βœ… Correct Answer: (D) compile time error

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
265
Total Visits
πŸ“½οΈ
3 y ago
Published
πŸŽ–οΈ
Tina Singh
Publisher
πŸ“ˆ
98%
Success Rate