Quantcast
Channel: Programming Forums
Viewing all articles
Browse latest Browse all 51036

error as unknown preprocessor directive:warning

$
0
0
im tring to use C Preprocessor directive #warning, but im getting error in ma code
//PreProcessor Conditional Compilation
#include<stdio.h>
#include<conio.h>
#define Num 85
int main(void)
{
	clrscr();
	#ifdef Num
		printf("Num is Defined to %d",Num);
	#endif
	#ifndef Number
		#warning Number is not defined
		printf("\nNumber is Not Defined");
	#else
		#error Preprocessor NEVER reaches here
		printf("\nNumber is Defined to %d",Number);
	#endif
	getch();
	return 0;
}


Viewing all articles
Browse latest Browse all 51036

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>