logo

Crowdly

Browser

Add to Chrome

Обчислювальна техніка та програмування [04123]

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!

Код програми, поданий нижче буде скомпільовано без помилок:

#include<iostream>

using namespace std;

 

int main()

{

char str[20] = "Red color";

int size = strlen(str) + 1;

char * ptr = new char[size];

strcpy_s(ptr, size, "Blue");

strcat_s(ptr,size, str);

cout << ptr << '\t' << str;

delete[] ptr;

return 0;

}

 

0%
0%
View this question
При якому значенні змінної t завершиться виконання цикл

у

int t = 101;

for (int x = 10; t > x; t -= x)

{

cout << x<<endl;

t--;

}

View this question

Який результат виконання наступного фрагмента коду:

View this question

Яку задачу розв'язує алгоритм?

Блоксхема

View this question

Який результат виконання наступного фрагмента коду:

View this question

Код програми, поданий нижче буде скомпільовано і виконано без помилок:

0%
0%
View this question
Якого значення набуде змінна

x унаслідок виконання фрагменту коду

int x = 17, y=9;

int *px = &x, py = &y;

py = px; *px = 22; *py = 33;

View this question
При якому значенні змінної y завершиться виконання цикл

у

int y = 1;

for(int x = 30; y <= x; y *= y )

{

cout << x;

y++;

}

View this question

Чи працюватиме код поданий далі? Якщо так, то який результат його виконання?

#include <iostream>

using namespace std;

struct P

{

int a;

double b;

};

void fill(P* obj){

obj = new P;

obj->a = 10;

obj->b = 3.44;

}

void main(){

P* o;

fill(o);

cout << o->a << "\t" << o->b << "\n";

}

View this question
Якого значення набуде змінна

x унаслідок виконання фрагменту коду

int x = 7, y=10;

int *px = &x, py = &y;

px = py; *px = 22; *py = 31;

View this question

Want instant access to all verified answers on vns.lpnu.ua?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!

Browser

Add to Chrome