0

Why we need space before %c in structure.

Some 32 bit Compiler giving error while typing without space before %c https://code.sololearn.com/c5jXiq15889S/?ref=app

27th Aug 2019, 5:58 AM
Suduli Ray
Suduli Ray - avatar
4 Answers
+ 4
according to the documentation which i may not be quoting properly but am just saying other specifiers like %d & %f eat up the white space in the buffer while %c & %s do not, which may cause the next specifier to eat up the space which is left by %c | %s rather displaying the content
27th Aug 2019, 1:12 PM
✳AsterisK✳
✳AsterisK✳ - avatar
+ 3
Can you describe the error message and which compiler you meant? that information may help others to identify and isolate the problem, then come up with something to suggest ... (Edit) Suduli Ray Add that information to the Description of the question, so viewers can quickly see it. Good luck! 👍
27th Aug 2019, 6:13 AM
Ipang
+ 1
Thank you
29th Aug 2019, 6:06 AM
Suduli Ray
Suduli Ray - avatar
0
Sure
27th Aug 2019, 6:13 AM
Suduli Ray
Suduli Ray - avatar