By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,985 Members | 1,863 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,985 IT Pros & Developers. It's quick & easy.

how can display the % symbol to the screen in c

P: 1
what is the output for the following
Expand|Select|Wrap|Line Numbers
  1. x=2;
  2. y=5;
  3. z=x+++y;
  4. printf("%d %d %d",x,y,z);
Dec 13 '10 #1
Share this Question
Share on Google+
1 Reply

Expert 100+
P: 2,396
What do you hope to accomplish with
Expand|Select|Wrap|Line Numbers
  1. z=x+++y;
Also, the printf output depends on the types of x,y,z. so you should tell us that.

Do you also wish to know how to display the "%" character (as indicated in the title of your post)?
Dec 13 '10 #2

Post your reply

Sign in to post your reply or Sign up for a free account.