Hi all,
        
       I have one doubt in c - preprocessor.

*****************************************
#define print(s) printf("%s",s);

int main()
{
   print("Hello");
   return 0;
}
*****************************************

This code is working properly without any errors, it is giving Hello
as output.

But i thought that c preprocessor will replace 

     print("Hello") by
     
     printf("%Hello","Hello");

But i checked the preprocessor output it is showing 

    printf("%s","Hello");


Why ?..

Please give me the explanation for this.

Thanks 
Siva

Reply via email to