Why is scanf skipping lines [closed]
Closed 10 mins ago.
Is scanf trying to read quaternions?
I’m trying to write a piece of code that will read user input, store it inside a double or a char depending on the input’s type. It works fine, unless I input “i”, “j”, “I” or “J”. These characters are read correctly if the first scanf looking for doubles does not run. What’s happening?
Why doesn’t scanf(“%d %d”) complain about decimal input?
Why when I run this code:
How to sscanf hex digit string into char variables?
I wonder why the following code does not work as I expect:
How can i use fscanf from file to struct in c?
I cannot save information of students from file to struct, When i tried to printf my struct its not working, I think it should work but i dont understand, why it is not working. When i did only struct or use file like this it works.
How can i use fscanf from file to sturct in c?
I cannot save information of students from file to struct, When i tried to printf my sturct its not working, I think it should work but i dont understand, why it is not working. when i did only struct or use file like this it works.
sscanf gave me unexpected result
I am learning C language. This is my code run in linux.
sscanf: how to parse
I’m trying to parse this string:
Why does scanf() take my old character input
when i input “yy” scanf() uses the second y automatically and doesn’t wait for another char input.