Infix To Prefix Conversion using Stack C Program

C Program To Convert Expression From Infix To Prefix using Stack

Learn how to convert an expression from Infix to Prefix using Stack in C Programming. This code for infix to prefix in c uses two arrays to store infix and prefix expression and a stack for conversion from infix to prefix expression.

Infix To Prefix Conversion Example

Infix String: X+Y/Z-M*N+O

Prefix String: +-+X/YZ*MNO

Must Read: C Program For Implementing Stack using Array

C Program For Infix To Prefix Conversion using Stack


C Program To Convert Infix To Prefix Expression using Stack

In case you get any compilation errors or any doubts in this C Program For Conversion of Infix Expression to Prefix Expression, let us know about it in the Comment Section below.

Tushar Soni

I am Tushar Soni, Co - Founder of CodingAlpha. I am a computer science student from India and passionate about Web Development and Programming. Connect with me on Facebook | LinkedIn | Google Plus

2 thoughts on “Infix To Prefix Conversion using Stack C Program

  • October 5, 2016 at 9:28 pm

    This is funny. I searched for infix to prefix conversion everywhere. Didnt get any working program. But, your program works. Thanks!

  • October 5, 2016 at 10:51 pm

    Prefix means operators before the operand and infix means operators within the operands, right?


Join The Discussion