Header Ads

C++ program using stack to check whether given expression is well parenthesized or not.



Click on ADS to support us

Problem Statement:-


In any language program mostly syntax error occurs due to unbalancing delimiter such as (),{},[]. Write C++ program using stack to check whether given expression is well parenthesized or not.



Code:-





Output:-


1 comment:

  1. The code doesn't terminate an infinite loop and runs indefinitely. Please look into it.

    ReplyDelete

Powered by Blogger.