Logo 
Search:

C Programming Articles

Submit Article
Home » Articles » C Programming » BeginnersRSS Feeds

Example of preprocessor - 1

Posted By: Walborgd Fischer     Category: C Programming     Views: 9959

Example of preprocessor - 1

Code for Example of preprocessor - 1 in C Programming

# include <stdio.h>

#define VAL 35        // A#define HELLO “HELLO”;    // B

main ()
{    
    int res;

    res = VAL-5;        // C
    printf (“res = VAL-5: res == %d\n”, res);
    
    printf ( HELLO);        //D
}
[/Code]
  
Share: 


Didn't find what you were looking for? Find more on Example of preprocessor - 1 Or get search suggestion and latest updates.

Walborgd Fischer
Walborgd Fischer author of Example of preprocessor - 1 is from Frankfurt, Germany.
 
View All Articles

 
Please enter your Comment

  • Comment should be atleast 30 Characters.
  • Please put code inside [Code] your code [/Code].

 
No Comment Found, Be the First to post comment!