In my kernel function i have given arguments as three vectors A,B and C respectively.
A and B are input vector ; C is the output vector
kernel function is as follows
int i=get_global_id(0);
int j;

there was no change in the B vector

but when i wrote C[j] in place of B[j] inside the for loop, i got the changes in C vector
Can anyone explain why??