0
What is the output of the following C++ program?
#include <iostream>
using namespace std;
struct T {
T() { cout << "c"; }
T(const T&) { cout << "k"; }
~T() { cout << "d"; }
};
void f(T t) {}
int main() { T a; f(a); }- Ackdd
- Bckd
- Ccdd
- Dcckd
Correct answer: A