char str[] = \"beautiful earth\"; memset(str, \'*\', 6); printf(\"%s\", str); Output: ******ful earth
Like the above use of memset, can we initial
Actually it is possible with memset_pattern4 (it sets 4 bits at a time).
memset_pattern4(your_array, your_number , sizeof(youre_array));