gdata.io.handleScriptLoaded({"version":"1.0","encoding":"UTF-8","feed":{"xmlns":"http://www.w3.org/2005/Atom","xmlns$openSearch":"http://a9.com/-/spec/opensearchrss/1.0/","xmlns$gd":"http://schemas.google.com/g/2005","xmlns$georss":"http://www.georss.org/georss","xmlns$thr":"http://purl.org/syndication/thread/1.0","xmlns$blogger":"http://schemas.google.com/blogger/2008","id":{"$t":"tag:blogger.com,1999:blog-5735018943946871385"},"updated":{"$t":"2023-12-09T13:35:10.032-08:00"},"category":[{"term":"Hackerrank Delete duplicate-value nodes from a sorted linked list Solution"},{"term":"Hackerrank Print the elements of a linked list solution"},{"term":"PATTERNS"},{"term":"pattern generation in c"},{"term":"c++ program"},{"term":"Hackerrank Reverse a doubly linked list solution"},{"term":"programming"},{"term":"TEXT ANALYZER"},{"term":"networks"},{"term":"triangle pattern c++"},{"term":"unipolar encoding simulation"},{"term":"Hackerrank Print in Reverse solution"},{"term":"c++"},{"term":"education"},{"term":"opps sandclock pattern"},{"term":"opps triangle pattern"},{"term":"Linked Lists in C++"},{"term":"coding"},{"term":"C++ Diamond Pattern"},{"term":"hourglass pattern c++"},{"term":"hackerrank"},{"term":"java"},{"term":"c"},{"term":"Utopian tree"},{"term":"lexical analyser"},{"term":"cpp"},{"term":"Hackerrank Insert a node into a sorted doubly linked list Solution"},{"term":"java program"},{"term":"mini project"},{"term":"c programming"},{"term":"operator precedence"}],"title":{"type":"text","$t":"GRK"},"subtitle":{"type":"html","$t":"A blog by Gokul Raj Kumar"},"link":[{"rel":"http://schemas.google.com/g/2005#feed","type":"application/atom+xml","href":"https://www.blogger.com/feeds/5735018943946871385/posts/default/-/operator+precedence?alt\u003djson-in-script\u0026max-results\u003d6"},{"rel":"self","type":"application/atom+xml","href":"https://www.blogger.com/feeds/5735018943946871385/posts/default/-/operator+precedence?alt\u003djson-in-script\u0026max-results\u003d6"},{"rel":"alternate","type":"text/html","href":"http://blog.grkweb.com/search/label/operator%20precedence"},{"rel":"hub","href":"http://pubsubhubbub.appspot.com/"}],"author":[{"name":{"$t":"GRK"},"uri":{"$t":"https://www.blogger.com/profile/00099219911209322075"},"email":{"$t":"noreply@blogger.com"},"gd$image":{"rel":"http://schemas.google.com/g/2005#thumbnail","width":"35","height":"35","src":"//www.blogger.com/img/blogger_logo_round_35.png"}}],"generator":{"version":"7.00","uri":"https://www.blogger.com","$t":"Blogger"},"openSearch$totalResults":{"$t":"1"},"openSearch$startIndex":{"$t":"1"},"openSearch$itemsPerPage":{"$t":"6"},"entry":[{"id":{"$t":"tag:blogger.com,1999:blog-5735018943946871385.post-1894594100708550161"},"published":{"$t":"2014-07-11T12:18:00.001-07:00"},"updated":{"$t":"2014-07-11T12:45:43.483-07:00"},"category":[{"scheme":"http://www.blogger.com/atom/ns#","term":"c programming"},{"scheme":"http://www.blogger.com/atom/ns#","term":"programming"},{"scheme":"http://www.blogger.com/atom/ns#","term":"c"},{"scheme":"http://www.blogger.com/atom/ns#","term":"operator precedence"}],"title":{"type":"text","$t":"Operator Precedence"},"content":{"type":"html","$t":"\u003cdiv dir\u003d\"ltr\" style\u003d\"text-align: left;\" trbidi\u003d\"on\"\u003e\n\u003cdiv dir\u003d\"ltr\" style\u003d\"text-align: left;\" trbidi\u003d\"on\"\u003e\nSimple program for operator precedence parser in C.\u003cbr /\u003e\nIt takes the expression as input and calculates the precedence of the operators.\u003cbr /\u003e\n\u003cbr /\u003e\nSubscribe to the blog to get instant updates via E-Mail.\u003cbr /\u003e\n\u003ch2 style\u003d\"text-align: left;\"\u003e\nPROGRAM CODE:\u003c/h2\u003e\n\u003cbr /\u003e\n\u003cpre style\u003d\"background-image: URL(http://2.bp.blogspot.com/_z5ltvMQPaa8/SjJXr_U2YBI/AAAAAAAAAAM/46OqEP32CJ8/s320/codebg.gif); background: #f0f0f0; border: 1px dashed #CCCCCC; color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;\"\u003e\u003ccode style\u003d\"color: black; word-wrap: normal;\"\u003e #include\u0026lt;stdio.h\u0026gt;  \n #include\u0026lt;string.h\u0026gt;  \n void main()  \n {  \n   int i,j,cnt\u003d1;  \n   char operators[] \u003d\"*/%+-\",input[100];  \n   printf(\"Enter the statement : \");  \n   gets(input);  \n   for(i\u003d0;i\u0026lt;strlen(operators);i++)  \n   {  \n     for(j\u003d0;j\u0026lt;strlen(input);j++)  \n     {  \n       if(input[j]\u003d\u003doperators[i])  \n       {  \n         printf(\"%d %c\u003d%c%c%c\\n\",cnt++,input[j-1],input[j-1],input[j],input[j+1]);  \n         input[j+1]\u003dinput[j-1];  \n       }  \n     }  \n   }  \n }  \n\u003c/code\u003e\u003c/pre\u003e\n\u003c/div\u003e\n\u003cbr /\u003e\n\u003ch2 style\u003d\"text-align: left;\"\u003e\nOUTPUT:\u003c/h2\u003e\n\u003cbr /\u003e\n\u003cdiv class\u003d\"separator\" style\u003d\"clear: both; text-align: center;\"\u003e\n\u003ca href\u003d\"http://3.bp.blogspot.com/-ms0kOoiSOgM/U8A4KdjDyYI/AAAAAAAAAiI/YhDfxMkwj54/s1600/UntitledS.png\" imageanchor\u003d\"1\" style\u003d\"margin-left: 1em; margin-right: 1em;\"\u003e\u003cimg border\u003d\"0\" src\u003d\"http://3.bp.blogspot.com/-ms0kOoiSOgM/U8A4KdjDyYI/AAAAAAAAAiI/YhDfxMkwj54/s1600/UntitledS.png\" height\u003d\"321\" width\u003d\"640\" /\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cbr /\u003e\nSubscribe to the blog to get instant updates via E-Mail.\u003cbr /\u003e\n\u003cbr /\u003e\n\u003cspan style\u003d\"background-color: white; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 18px; line-height: 25.200000762939453px;\"\u003eNotify the Suggestions about the program through comments ... :)\u003c/span\u003e\u003c/div\u003e\n"},"link":[{"rel":"replies","type":"application/atom+xml","href":"https://blog.grkweb.com/feeds/1894594100708550161/comments/default","title":"Post Comments"},{"rel":"replies","type":"text/html","href":"https://blog.grkweb.com/2014/07/operator-precedence.html#comment-form","title":"0 Comments"},{"rel":"edit","type":"application/atom+xml","href":"https://www.blogger.com/feeds/5735018943946871385/posts/default/1894594100708550161"},{"rel":"self","type":"application/atom+xml","href":"https://www.blogger.com/feeds/5735018943946871385/posts/default/1894594100708550161"},{"rel":"alternate","type":"text/html","href":"https://blog.grkweb.com/2014/07/operator-precedence.html","title":"Operator Precedence"}],"author":[{"name":{"$t":"GRK"},"uri":{"$t":"https://www.blogger.com/profile/00099219911209322075"},"email":{"$t":"noreply@blogger.com"},"gd$image":{"rel":"http://schemas.google.com/g/2005#thumbnail","width":"35","height":"35","src":"//www.blogger.com/img/blogger_logo_round_35.png"}}],"media$thumbnail":{"xmlns$media":"http://search.yahoo.com/mrss/","url":"http://3.bp.blogspot.com/-ms0kOoiSOgM/U8A4KdjDyYI/AAAAAAAAAiI/YhDfxMkwj54/s72-c/UntitledS.png","height":"72","width":"72"},"thr$total":{"$t":"0"}}]}});