Assume sizeof an integer and a pointer is 4 byte. Output?
Explanation: Output is 10*20*sizeof(int) which is “800″ for compilers with integer size as 4 bytes.
When a pointer is de-referenced using *, it yields type of the object being pointed. In the present case, it is an array of array of integers. So, it prints R*C*sizeof(int).
Quiz of this Question
Attention reader! Don’t stop learning now. Get hold of all the important DSA concepts with the DSA Self Paced Course at a student-friendly price and become industry ready.