Saved Bookmarks
| 1. |
What is the output of the program?.#include using namespace std;void trick (int *templ, int *temp2){int *temp=templ;templ=temp2;temp2=temp;}int main() {int a=100;int b=200;int c=300;trick (&a,&b);trick (&a,&c);cout |
|
Answer» >> INT a[5] = {5, 1, 15, 20, 25}; The variable arr is declared as an integer array with a SIZE of 5 and it is initialized to a[0] = 5, a[1] = 1, a[2] = 15, a[3] = 20, a[4] = 25. >> int i, j, m; The variable i, j, m are declared as an integer type. >> i = ++a[1]; becomes i = ++1; HENCE i = 2 and a[1] = 2 |
|