Why do we get sizeof( &arr ) and sizeof( arr ) / sizeof( int ) different?

前端 未结 0 1847
隐瞒了意图╮
隐瞒了意图╮ 2021-02-09 11:09
using namespace std;
int main( )
{
    int arr[ 5 ] = { 1 , 2 , 3 , 4 , 5 } ;
    cout << sizeof( arr ) << endl ;
    cout << sizeof( &arr ) <&l         


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