it puts back the read character from a buffer back to the buffer.it ensures
that I do not break the sequence of stream,just a defensive strategy.
On Wed, Jul 13, 2011 at 9:04 AM, nicks <[email protected]> wrote:

> @saurabh.....nice code very well written....can u plz explain the use of
> ungetc in your code
>
> On Wed, Jul 13, 2011 at 7:10 AM, saurabh singh <[email protected]>wrote:
>
>> Phew I think all cases covered to the best of my knowledge.
>> http://www.ideone.com/xHOQ9
>>  <http://www.ideone.com/xHOQ9>Few that remain include cases like '\'' "\"
>> appear in the source code.can be fixed easily.
>> Also not counting quoted and array initialization {} pairs as depth.
>> Counting the main body as depth level 1.
>>
>>
>>
>> PS:I have not tested it extensively so quite possible few bugs remained
>> unattended.Apologies in that case
>> --
>> Saurabh Singh
>> B.Tech (Computer Science)
>> MNNIT ALLAHABAD
>>
>>
>>  --
>> You received this message because you are subscribed to the Google Groups
>> "Algorithm Geeks" group.
>> To post to this group, send email to [email protected].
>> To unsubscribe from this group, send email to
>> [email protected].
>> For more options, visit this group at
>> http://groups.google.com/group/algogeeks?hl=en.
>>
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Algorithm Geeks" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/algogeeks?hl=en.
>



-- 
Saurabh Singh
B.Tech (Computer Science)
MNNIT ALLAHABAD

-- 
You received this message because you are subscribed to the Google Groups 
"Algorithm Geeks" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.

Reply via email to