Y
yashwant pinge
The following statement
printf("%d %c");
gives the garbage value
Why it is...?
printf("%d %c");
gives the garbage value
Why it is...?
yashwant pinge said:The following statement
printf("%d %c");
gives the garbage value
Why it is...?
yashwant said:The following statement
printf("%d %c");
gives the garbage value
Why it is...?
The following statement
printf("%d %c");
gives the garbage value
Why it is...?
Because: You have omitted theyashwant said:The following statement
printf("%d %c");
gives the garbage value
Why it is...?
Clever said:Because: You have omitted the
You're seriously asking?
The following statement
printf("%d %c");
gives the garbage value
Why it is...?
ramesh nellore1 nellore said:In C lang the % character has a specific functionality.
This can be used while printing any data which is stored in variables
like that.
Here in this statement " printf("%d %c"); " u not mentioned the
variables, which stores the data( need to print).
yashwant said:The following statement
printf("%d %c");
gives the garbage value
Why it is...?
Try it this way:
printf("%%d %%c\n");
Charles Richmond said:Try it this way:
printf("%%d %%c\n");
Keith said:You're assuming that the OP wanted to print the percent signs.
He didn't give us enough information to guess what he was actually
trying to do.
Yup, he did *not* give enough information to indicate
what he was trying to accomplish. So I figured I could
make whatever assumption I wanted to make.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.