The title says it all actually.
In a simple way, i have an array of 10 values for example..and i would like to multiply each value with 5. Can i actually just do the following?
for (i = 0 ; i <10 ; i++)
{
x[i]=x[i]*5;
}
And what about getting square for values in the array and be stored back into the same array? As in I want x[i]=x[i]*x[i]
.
Can I actually just do the multiplication like that? I tried a couple of combination but it didnt really work..hope someone can help out! Thanks!