'Ui' was not declared in this scope

You cannot invent variable names at runtime but you could use an array U[3] and hold values in the array addresses of U[0], U[1] and U[2]

1 Like