[Solved] How to use default values in a char array? November 12, 2022 by Kirat memset(&host, 0, sizeof(host)); will fill it with zeroes. 0 solved How to use default values in a char array?