Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options answers only not deleted user 12099
0 votes
Accepted

Why does my program only work on int numbers, not on float ones?

To be exact, it works for multiples of 0.25, because a floating point number always stores a multiple of a power of two. For 0.41, there is no finite representation in that way, the exact binary repre …
Blauelf's user avatar
  • 21k
1 vote
Accepted

Adding a code block to perform operations on float

So you decided to make some functions, why not. The function definition would be like return_type function_name(param1_type param1_name, param2_type param2_name, ...) { // body of the function } …
Blauelf's user avatar
  • 21k
0 votes
Accepted

Readability in C passes tests on instructions page but when submitting, only 2/11 pass

The problem here is your return printf(..., which should be just printf(..., no return. main is the only function that declares to return something, but does not need to return a value explicitly. In …
Blauelf's user avatar
  • 21k