Posts by Behnken • 36 points
2 posts
- 
		1 votes1 answer540 viewsA: Printf running twice during a loopIf you put a printf("%d",chance); in your loop, you will see that it runs twice to each character you place, ie the scanf is running twice with a character. This is because when you type, for… 
- 
		1 votes1 answer91 viewsA: Error in capturing information in files using the fseek() function... What’s the problem?I think your problem is more with function fgetc than with the fseek. Every time you call fgetc, you read a character and position the Pointer file in the next character. No while testing whether…