Looking for Обчислювальна техніка та програмування [04123] test answers and solutions? Browse our comprehensive collection of verified answers for Обчислювальна техніка та програмування [04123] at vns.lpnu.ua.
Get instant access to accurate answers and detailed explanations for your course questions. Our community-driven platform helps students succeed!
у
int y = 1;
for (int x = 33; y <= x; y += y)
{
cout << x<<endl;
y++;
}
int x = 3, y = (x++)*(--x)*(x--)*(x);
Який з перелічених типів даних не використовується в мові С?
Який результат виконання наступного фрагмента коду:
Який результат виконання наступного фрагмента коду:
int a = 0;
while (a<10){
int b = 10;
while (b<0){
cout << 'a';
b--;
}
a++;
}
cout << "end\n";
Який результат виконання наступного фрагмента коду:
int ar[2][2] = { { 1, 2 }, { 3, 4 } };
int** mas = ar;
for (int i = 0; i<2; i++)
for (int j = 0; j<2; j++)
cout << mas[i][j] << '\t';
x унаслідок виконання фрагменту коду
int x = 7, y=10;
int *px = &x, py = &y;
py = px; *py = 22; *px += 31;
Задайте відповідність між функціями та їх призначенням
Чи працюватиме код поданий далі? Якщо так, то який результат його виконання?
#include <iostream>
using namespace std;
struct P
{
char * str;
int a;
};
P* create() {
P* ptr = new P;
ptr->str = new char[6];
strcpy_s(ptr->str,6, "Hello");
ptr->a = 10;
return ptr;
}
void main() {
P* o = create();
cout << o->str << "\t" << o->a << "\n";
}