python (65.2k questions)
javascript (44.3k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (13k questions)
Global array won't update, keeps giving garbage values when passed by reference
It's supposed to call a function through a thread for merge sort- but for some reason, it doesn't update the global array when I try to output it later through the main() function. So i tried passing ...
MR DZ
Votes: 0
Answers: 2
Division of two numbers in printf return garbage value in c
In printf("%d", (float) 9/ (float) 5); what will be the output?
Note: In printf function the format specifier is %d
It seems that output would be 0 just like the below code return answer 0...

Sajjad Ali
Votes: 0
Answers: 2
Returning const char* from funciton
I have this function, where I'm trying to return a const char*, but when I try to output the returned value, I get garbage value;
virtual const char* what() const noexcept
{
std::stringstream s;
...

user16078551
Votes: 0
Answers: 2
Why there is a pattern on the garbage values in the C program?
I try this program in CS50 Week 4 memory. I noticed there is a pattern on the garbage values. Initially, I thought garbage values should be randomize. But, it looks like there is different pattern dep...
Consxious
Votes: 0
Answers: 1