memset function in c language

Viewed 27418

I am studying the memset function now, but all the examples are regarding to char array as following:

char a[100];
memset(a, 0, 100);

it will set every element in this char array to 0.

I wondered if memset can apply to int array or float array?

3 Answers
Related