Advertisement
fellpz

Diretiva #define

Apr 6th, 2017
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.22 KB | None | 0 0
  1. #include <stdio.h>
  2. #define PI 3.1416
  3. #define VERSAO "2.02"
  4. #define PRINT(i) printf("O valor de Pi eh: %f \n", i)
  5. #define PRINT1(z) printf("Programa versao %s\n", z)
  6.  
  7. int main ()
  8. {
  9. PRINT1(VERSAO);
  10. PRINT(PI);
  11. return 0;
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement