the length of an array in a nwe class is different while in main cpp

ساخت وبلاگ

Vote count: 0

#include using namespace std;
void pp(int a[]) {
int leng = sizeof(a)/sizeof(int);
cout<

The sizeof(a)/sizeof(int) in main is 5 while it in pp is 2, I just don't understand the reason.

asked 51 secs ago
narip

back soft...
ما را در سایت back soft دنبال می کنید

برچسب : نویسنده : استخدام کار backsoft بازدید : 217 تاريخ : دوشنبه 27 شهريور 1396 ساعت: 13:35