char str[] = \"beautiful earth\"; memset(str, \'*\', 6); printf(\"%s\", str); Output: ******ful earth
Like the above use of memset, can we initial
Short answer, NO.
Long answer, memset sets bytes and works for characters because they are single bytes, but integers are not.
memset