GradePack

    • Home
    • Blog
Skip to content
bg
bg
bg
bg

GradePack

Choose the output of the following program from the options…

Choose the output of the following program from the options given below : #include using namespace std; int main() {    int arr[5] = {1,2,3,4,5};    cout

Read Details

 What function heading will be called for sum(1.5, 2.5, 6, 5…

 What function heading will be called for sum(1.5, 2.5, 6, 5) ?  

Read Details

What is the maximum number of elements that can be stored in…

What is the maximum number of elements that can be stored in a two dimensional array declared as : int a[2][5];

Read Details

Write a C++ Program :        1. Accepts 9 values to  a 3×3 i…

Write a C++ Program :        1. Accepts 9 values to  a 3×3 integer array from the user as input.         2. Define two  functions to calculate and print:                 a.Minimum element of each row .                  b.Minimum element of each column.          3. Displays all these values row-wise and column-wise. SAMPLE OUTPUT : Enter 9 integers for 3×3 array: 1  2  3 5  4   3 8   3   2 Minimum Value in Row 1 : 1 Minimum Value in Row 2 : 3 Minimum Value in Row 3: 2 Minimum Value in Column 1 : 1 Minimum Value in Column 2 : 2 Minimum Value in Column 3 : 2  

Read Details

What is the maximum number of elements that can be stored in…

What is the maximum number of elements that can be stored in a two dimensional array declared as : int a[4][3];

Read Details

Write the output of the following program : include using na…

Write the output of the following program : include using namespace std; int main() {    int arr[10] = {2,1,2,1,2,1,2,1,2,1};    int sum = 0;    for (int i = 0; i < 10; i += 2) {        sum += arr[i];    }    cout

Read Details

How many times the text “Hi” will be printed : #include usin…

How many times the text “Hi” will be printed : #include using namespace std;int main() {   int i = 10;while (i < 15) {    cout

Read Details

Write the output of the following code : #include using name…

Write the output of the following code : #include using namespace std; int main() {    int x = 3, y = 7;    if (x > 0 || y < 5)        cout

Read Details

Mark the following statement as True /False. The while loop…

Mark the following statement as True /False. The while loop will never execute, if the loop condition is false.

Read Details

Choose the output : #include using namespace std; int value(…

Choose the output : #include using namespace std; int value(int &num) {    num += 2;    return num;} int main() {    int x = 7;    value(x);    cout

Read Details

Posts pagination

Newer posts 1 … 34,622 34,623 34,624 34,625 34,626 … 91,824 Older posts

GradePack

  • Privacy Policy
  • Terms of Service
Top