Consider the following code segment.
#include <iostream> #include <algorithm using namespace std;
bool compare(int i, int j) { return (i > j);
int main() {
int data[] = { 40, 30, 90, 10, 2050706080 ; Compare);
sort(data,
-
for (int i - 0; i <9; i++) cout « data[i] << "";
return 0;
Fill in the blank with appropriate options, such that the output is: 90 40 30 20 10 50 70 60 80
a) data + 9
b) data + 5
c) data [8]
d) & data [5]
Answers
Answered by
0
Answer:
b) data + 5 mark me as brainliest
Similar questions
Math,
3 months ago
Chemistry,
3 months ago
Chemistry,
3 months ago
Science,
7 months ago
Social Sciences,
11 months ago