Consider the following code segment.
#include <iostream>
using namespace std;
int main() {
int a[] = { 5, 20, 15 }; int *arr [3] = { a, a + 1, a + 2 };
cout << *arr[arr[1] - 19];
return 0;
}
What will be the output?
a) 5
b) 20
c) 15
d) Unpredictable value
Answers
Answered by
0
Answer:
Explanation: Which assignment is not valid for integer arrays in c programming?(arr,arr 1 and arr2 are integer arràys) A)arr[4]={1,2.5,3,4}; B)arr[]={1,2,3,4} C)arr 1=arr 2.
Explanation:
Similar questions
Computer Science,
3 months ago
English,
3 months ago
Math,
3 months ago
Hindi,
7 months ago
Social Sciences,
11 months ago
Science,
11 months ago