Revision as of 21:51, 13 May 2024 by Admin
Exercise
ABy Admin
May 13'24
Answer
pi2 = pi;
- The reverse,
pi = pi2;
is a valid C statement ifpi
is not a constant andpi2
is initialized. - a.
pi2 = 3.1415;
b. The reverse:3.1415 = pi2;
is not valid since it is impossible to assign a value to a literal.
References
Wikibooks contributors. "C Programming/Exercise solutions". Wikibooks. Wikibooks. Retrieved 13 May 2024.