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 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](/WebImages/37/which-of-the-following-expressions-gives-the-size-in-bytes-o-1112948-1761590528-0.webp)
