whats the diffrence between = and ==? in the following program if i replace = with == the square root of 5 comes out to be 134513664..
Code:
main()
{
int num;
printf("Hello, World!\n");
num = square(5);
printf("The square root of 5 is %i\n", num);
}
int square(int n)
{
return(n * n);
}