I need help with this http://codepad.org/FNUci22s
I am posting the ling of code pad because it has a way to execute it, so long story short. I use two different functions seno, sen (both for sin). When using the printf and adressing both to compare results I get from the seno function the correct result(sin(45)=0.70710) but the moment I remove the other function from the printf i get "nan". Funcitons dont depend from each other.
Jump to Post
The reason your program is behaving so unpredictably is because you are not initializing the variable
seno()function, nor are you initializing
sen()function. Because you are using the values of these variables before initializing them, you are invoking undefined behavior. I could go …
All 2 Replies
We're a friendly, industry-focused community of 1.21 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.