logo

Crowdly

Browser

Add to Chrome

Course 15873

Looking for Course 15873 test answers and solutions? Browse our comprehensive collection of verified answers for Course 15873 at edu.vik.bme.hu.

Get instant access to accurate answers and detailed explanations for your course questions. Our community-driven platform helps students succeed!

Igaz, vagy hamis?  Az STL minden sorozattárolójának van iterátoros konstruktora.  

0%
100%
View this question

Igaz, vagy hamis?    A destruktor nem lehet virtuális.

0%
100%
View this question

Mit ír ki a következő kódrészlet?

#include <iostream>

void f(char x) { std::cout << "c"; }

void f(int x) { std::cout << "i"; }

void f(double x) { std::cout << "d"; }
int main() {

f(1.0);

}

0%
0%
0%
100%
View this question
Mi a sablon v, template?

100%
0%
0%
0%
View this question

Mi lesz az alábbi kódrészlet lefutása után ch értéke?

const char* duma = "Hello9";

std::vector<char> t(duma, duma+6);

char ch = *t.rbegin();

100%
0%
0%
0%
View this question

Igaz, vagy hamis?      Többszörös öröklés esetén az alaposztály mindig virtuális.

0%
100%
View this question

A const_iterator értéke megváltoztatható, csak az adat nem változtatható meg, amire az iterátor hivatkozik.

100%
0%
View this question

Hányszor hívódik meg az alábbi C++ programban a Pont osztály destruktora ?

struct Pont { int x; int y; };

void foo(Pont& a) {

a.x = a.y;

}

int main() {

Pont p1;

foo(p1);

}

0%
0%
0%
0%
100%
0%
View this question

Védett-e a memóriaszivárgástól az alábbi program, ha a function() függvényben kivétel keletkezhet, és máshol memóriát nem foglalunk?

struct Foo {

int* array;

Foo(int* array) : array(array) { }

~Foo() { delete[] array; }

};

int main() {

try {

int* ptr = new int[100];

Foo foo(ptr);

function();

} catch (...) {

std::cout << "Jaj";

}

return 0;

}

100%
0%
View this question

Igaz, vagy hamis?  A static_cast operátor a static minősítő eltávolítására/hozzáadására használható.

0%
100%
View this question

Want instant access to all verified answers on edu.vik.bme.hu?

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

Browser

Add to Chrome