R
Q. What is the result of the following C++ program?
#include <stdio.h> #include<iostream> using namespace std; int main () { int arr[] = {0, 2, 4, 2, 1}; int n, s = 0; for (n = 0; n < 6; n++) { s += arr[n]; } cout << s; return 0; }
No solution found for this question.
Add Solution and get +2 points.
You must be Logged in to update hint/solution
Be the first to start discuss.
Q. ‐‐‐‐‐ function can only be called by another function that is a member of its class.
Q. Which keyword is used to represent a friend function?
Q. What is the purpose of the 'main' function in C++?
Q. A base class is also known as class.
Q. Logical AND (&&) and Logical OR (||) are ___ operators.
Q. Output of following program?
Q. The difference between P and ‘P’ is
Q. Which C++ keyword is used to exit from a loop or switch statement?
Discusssion
Login to discuss.