Comments on: Array of products except the current elements https://demo.ritambhara.in/array-of-products-except-the-current-elements/ Coding / System Design Interviews Fri, 22 Feb 2013 15:16:56 +0000 hourly 1 https://wordpress.org/?v=6.8.1 By: vikas https://demo.ritambhara.in/array-of-products-except-the-current-elements/#comment-1888 Fri, 22 Feb 2013 15:16:56 +0000 http://www.ritambhara.in/?p=2364#comment-1888 I think this should also work!!!
void multiplyMat(int* a, int* b, int n)
{
for(int i=0;i<n;i++){
for(int j=0; j<n; j++){
if (i != j)
b[i] *= a[j];
}
}
}

]]>