hi prasad
in c program the variables only be replaced by the arguments not the
constants because " "double quotes represents only constants and not be
replaced ok.
keep in touch bye.
mscprasad <[EMAIL PROTECTED]> wrote:
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
---------------------------------
Why delete messages? Unlimited storage is just a click away.
[Non-text portions of this message have been removed]