Tuesday, March 15, 2011

#undef usage

# undef _Win32
# include "stdio.h"


int main()
{
int i=10;
printf("I am in windows platform\n",printf("Hai "));
return 0;
}

OUTPUT:

Hai I am in windows platform
Press any key to continue . . .



Note1: 1. #undef is used to avoid the multiple inclusion of header files and source files.
2. multiple header files causes for increasing the output file size.

Note2:
1. printf function executes from right to left operation. First it starts from printf("Hai ") and then first printf() function.

No comments:

Post a Comment