Just started working with lambdas. I wanted to create pointer to array. I think that I searched the whole internet and every sigle tutorial and I didn't find the answer.
auto c = []() -> int* { int* b = new int[10]; b[0] = 2; b[1] = 2; return b; };
std::cout << sizeof(c()) << std::endl;
delete c();
The sizeof(c) is always returning 4 even if arrar size is 1000. And my question is can you actually do it?