sizeof(a)= sizeof(int)* 10 = 4 * 10 = 40
Sizeof is an operator in C/C++. Simply put, its function is to return the number of memory bytes occupied by an object or type.