Logo 
Search:

C Programming Articles

Submit Article
Home » Articles » C Programming » BeginnersRSS Feeds

Example of preprocessor - 6

Posted By: Adalberto Fischer     Category: C Programming     Views: 1444

Example of preprocessor - 6.

Code for Example of preprocessor - 6 in C Programming

#define CUBE(x)  x*x*x
#include <stdio.h>
main ()
{
    int k = 5;
    int j = 0;
    j = CUBE(k);        //B  j = k*k*k

    printf (“value of j is %d\n”, j);
}
  
Share: 


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

Adalberto Fischer
Adalberto Fischer author of Example of preprocessor - 6 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!