0

Why it is not displaing correct value after removing items from queue

https://code.sololearn.com/c0HFyG3OaWXP/?ref=app

25th Sep 2020, 8:08 AM
Prashant Pandey
Prashant Pandey - avatar
2 Answers
+ 5
Some errors i noticed make your main function with int type here void not woRkiNg . Second thing in line 73 u wrote if(front=-1 && rear==-1) See first condition front =-1 . You cannot assign value in if condition you need to write only condition You have not intilize any Value to i variable check it . You code woRkiNg infinite times check condition again .
25th Sep 2020, 8:21 AM
A S Raghuvanshi
A S Raghuvanshi - avatar
0
Thanks you so much .■.
26th Sep 2020, 9:48 AM
Prashant Pandey
Prashant Pandey - avatar