I recently appeared for the entrance of cdac.
There I found a lot of questions about postfix.(I know the postfix operator commonly used in c.But it wasn't that way.)
Sample question:- Wat will the expression ABC AB AC will become after postfix operation??
Please tell me how to deal with such questions???
And since I am a new user,if I have made any mistake in method of creating a new thread,pls forgive me for that.
sumeetdesaeee 0 Newbie Poster
Recommended Answers
Jump to Post> Sample question:- Wat will the expression ABC AB AC will become after postfix operation??
You need to post some actual C code.
Jump to PostSample question:- Wat will the expression ABC AB AC will become after postfix operation??
The expression contains only operands. Where are the operators?
If you have a string in infix, ie. in form A+B, and you wish to have it in the form AB+, you can use the
Jump to PostThat is just the reverse of the aforementioned algorithm.
Explanation- Scan the input string from left to right. Whenever you see an operand, just push it onto a stack. When you encounter an operator, pop two elements and concatenate the operator between the two operands and push it back …
All 9 Replies
Salem 5,265 Posting Sage
praveenraj1987 0 Newbie Poster
abhi.navale 0 Light Poster
s_sridhar 7 Junior Poster
tuse 22 Junior Poster
sumeetdesaeee 0 Newbie Poster
tuse 22 Junior Poster
jephthah commented: good answer: accurate, but without solving it for them. +12
sumeetdesaeee 0 Newbie Poster
Dream2code 12 Junior Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.