Home » C programs

C preprocessor programs

This section contains solved programs of C preprocessor directives. Here, we will learn all about C language preprocessor operators, directives through examples.

  1. The #if directive Example in C
  2. The #if ... #else directive Example in C
  3. The # Preprocessor Operator Example in C
  4. The ## Preprocessor Operator Example in C
  5. The __LINE__ Macro Example in C
  6. Print the current function name by using __func__ in C
  7. The #line directive Example in C
  8. Define Macros for YES and NO constants using #define in C
  9. Define a function like Macro that should use printf in C
  10. Define Macro PRINT to print given integer argument in C
  11. Define Macros to SET and CLEAR bit of a PIN in C
  12. Define Macro to toggle a bit of a PIN in C
  13. Define a Macro to set Nth bit to Zero in C
  14. Define a constant using Macro to use in Array declarations in C
  15. How to redefine a Macro in C?
  16. How to check whether a Macro is defined or not in C?
  17. Print argument (i.e. variable name, value) using Macro in C
  18. Print error message from any function with function name, line number in C.
  19. Macro Arguments Evaluation in C
  20. Define a Macro to find total number of elements in C
  21. Define a Macro to round a float value to nearest integer in C





Comments and Discussions

Ad: Are you a blogger? Join our Blogging forum.



Languages: » C » C++ » C++ STL » Java » Data Structure » C#.Net » Android » Kotlin » SQL
Web Technologies: » PHP » Python » JavaScript » CSS » Ajax » Node.js » Web programming/HTML
Solved programs: » C » C++ » DS » Java » C#
Aptitude que. & ans.: » C » C++ » Java » DBMS
Interview que. & ans.: » C » Embedded C » Java » SEO » HR
CS Subjects: » CS Basics » O.S. » Networks » DBMS » Embedded Systems » Cloud Computing » Machine learning » CS Organizations » Linux » DOS
More: » Articles » Puzzles » News/Updates

© https://www.includehelp.com some rights reserved.