Assign single value to multiple variables April 9, 2024 by Tarik You can do it two ways: char r = 0, g = 0, b = 0; or char r, g, b; r = g = b = 0;