147k views
4 votes
To assign a double variable d to a float variable x, you write ________. x = (long)d x = (int)d; x = d; x = (float)d;

User Hemen
by
7.8k points

1 Answer

6 votes
Hi,
In C,we write
x = (float)d;

User Mahorad
by
7.7k points