Solution for Exercise 5-13
ex0513
#include <stdio.h> #define VALUE 3 int main() { printf("The value is %d\n",VALUE); printf("And %d is the value\n",VALUE); printf("It's not %d\n",VALUE+1); printf("And it's not %d\n",VALUE-1); printf("No, the value is %d\n",VALUE); return(0); }
Notes
* You can get into trouble when you misspell your constant, although the compiler is very good about pointing out such errors.
Copyright © 1997-2024 by QPBC.
All rights reserved