Terminal print 0 in place of showing error in c language (format specifier error) #13109
Unanswered
lakshya goyal (zero) (2204Zero)
asked this question in
Q&A
Replies: 1 comment
|
Using the format specifiers incorrectly isn't treated as an error by most compilers though many of them will print a warning during compilation. For example, Visual Studio's compiler should do this by default: C4477 and so should clang: |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I tried to code in c language in vs code, i specified a float value under %d which is bascially a integer format specifier, but when i compiled it and runned it, the terminal printed 0 in place of giving an error of using wrong format specifier
All reactions