Answer:
Correct option is (D) that is int x = 7, y = 16, z = 28;.
Explanation:
To initialize multiple variables in a single statement, we use this syntax "data type variable=value, variable=value, variable=value;". here data type should be same for all the variable. All the variables are separated by ",". In this way we can initialize many variables in a single statement,but all the variables must have same data type.In option A,";" is used to separate the variables but this is used to end a statement.In option B, nothing used to separate all the variables and in option C, there is no ";" to end the statement.