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

infix to postfix conversion in simple C prog language

P: 2
Does anyone know a simple C program to covert an infix to a postfix expression?plz kindly help!
Jan 3 '08 #1
Share this Question
Share on Google+
4 Replies


sicarie
Expert Mod 2.5K+
P: 4,677
Sure, are you having trouble with the logic of how to do that, or implementing it?

PS - please see our Posting Guidelines, especially our How to ask a question section so that you can put everything we need to help you in one post.

Thanks!
Jan 3 '08 #2

P: 2
Sure, are you having trouble with the logic of how to do that, or implementing it?

PS - please see our Posting Guidelines, especially our How to ask a question section so that you can put everything we need to help you in one post.

Thanks!
I just dont know how to implement it though i knew the logic.
Jan 3 '08 #3

Expert 100+
P: 671
Well, try step 1: get the infix expression. This is something entered by user input right? So the first thing your program has to do is get that expression. Start with that code.
Jan 3 '08 #4

P: 31
I just dont know how to implement it though i knew the logic.
You just need to go step by step. Write down how you convert infix to postfix step by step and then start writing the code.
You could use a char array to accept the infix expression.

Raghu
Jan 4 '08 #5

Post your reply

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