How does the virtual keyword affect memory locations?

前端 未结 0 689
春和景丽
春和景丽 2021-01-26 08:12

I had a job interview earlier and was asked what the output of the following code is:

struct A {
    int data[2];
    A(int x, int y) { data[0] = x; data[1] = y;          


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题