What will be the output of the following C++ code snippet?#include stdio.h#includeiostreamusing namespace std;int main (){int array[] = {0, 2, 4, 6, 7, 5, 3};int n, result = 0;for (n = 0; n 8; n++){result += array[n];}cout result;return 0;}
#includeiostreamFind the output of the code :using namespace std;#includemath.hint square(int x, int y);double square_(int x, double y);int main(){double a = 4, b = 3.5;coutsquare(a,b)endl;coutsquare_(a,b)endl;return 0;}int square(int x, int y){int c = pow(x,y);return c;}double square_(int x, double y) {double c = pow(x,y);return c;}
#includeiostreamusing namespace std;int main (){int x = 15, y = 20;cout((x + y) + abs(x - y)) / 2endl;return 0;}