Answer:
Option (1)
Step-by-step explanation:
value is read outside the loop so it is read only once. After that the loop has begun and in the loop condition it is checked if size < capacity and as size is initialized as 3 so it is true and value if entered more than 0 then loop starts and value is assigned to a[3] and size is incremented and it continues till size is 6 and condition becomes false. So loop executes 3 times but same value is assigned.