Чему будут равны элементы массива, объявленного как
int N = 5;
int A[N] = {1, 2, 3, 4, 5};
пjсле выполнения цикла?
а) for( int i=0; i A[i] = A[i]*A[i];
б) for( int i=0; i A[i] = A[i+1];
в) for( int i=0; i A[i+1] = A[i];
г) for( int i=N-1; i>0; i-- )
A[i] = A[i-1];
д) for( int i=1; i A[i] = A[i-1] + 1;
е) for( int i=1; i A[i] = A[i-1]*2;
Please enter comments
Please enter your name.
Please enter the correct email address.
You must agree before submitting.

Answers & Comments


Copyright © 2024 SCHOLAR.TIPS - All rights reserved.