void *memset(void *s,int ch,int n);
Function:
Set each byte of a block in memory to ch, and the block size is n, where n is in bytes.
The title requirement is: initialize an integer array so that its output is all 1.
If you want to output 1, you can use 1 as the character.
int a[5];
memset(a,' 1 ',5 * sizeof(int));
? ? ...
?
? ...
...
Zazie Hoko
...
? ...
? ...
?
...
Zazie Hoko
...
[