What is the output of the following?
#include<stdio.h> 
int square(int);
int main( )
{
int num[5], i;
num[5] ={1, 2, 3, 4, 5};
for(i=0; i<5; i++)
{
square(num[i]);
}
}
int square(int n)
{
int sq;
sq= n * n;
printf(“%d ”, sq);
}

Posted on by