Search Results

Search: Posts Made By: jim mcnamara
Forum: Programming 04-21-2011
5,103
Posted By jim mcnamara
#define MAX_NUM 10 printf("MAX_NUM == %d\n",...
#define MAX_NUM 10
printf("MAX_NUM == %d\n", MAX_NUM);


Or. You add an extra define like this:

#define MAX_NUM 10
#define show_MAX_NUM printf("MAX_NUM=%d", MAX_NUM)

show_MAX_NUM;

...
Showing results 1 to 1 of 1

 
All times are GMT -4. The time now is 01:16 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy