Which of the following expressions gives the size in bytes o

Which of the following expressions gives the size in bytes of an array v with N elements ?

sizeof(v[0])


sizeof(v)


sizeof(v[0]) * sizeof(N)


N


sizeof(v[0])


sizeof(v)


sizeof(v[0]) * sizeof(N)


N


Solution

Which of the following expressions gives the size in bytes of an array v with N elements ?

Answer: sizeof(v)

Reason:sizeof method will give the size of the array in bytes.

Please do ask in case of any doubt,Thanks.

Which of the following expressions gives the size in bytes of an array v with N elements ? sizeof(v[0]) sizeof(v) sizeof(v[0]) * sizeof(N) N sizeof(v[0]) sizeof

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site