I have few C related questions.Someone having knowledge of C plz answer these. 1..What is the use of fflush(stdin) in this program? scanf("%d%d",&a,&b); fflush(stdin) scanf("%c",&ch); Code (markup): Also what is buffer exactly as it is associated with fflush often? 2..I need algorithms to print following 2 patterns but in different programs. 5 44 333 2222 11111 Code (markup): 5 54 543 5432 54321 Code (markup): Someone give answers to these, would be really appreciated.
What he said , looks like homework to me. Any C textbook should have the answers for you. Or you can ask mighty G.
a little rust in c For (i=5;i<0;i--) y=i FOR (X=i; X>6; X++) y=y&i For (i=5;i<0;i--) y=i FOR (X=i; X>6; X++) y=y&(i-1) Code (markup):