Top new questions this week:
|
I have this piece of code:
int foo() { return 0; }
int main()
{
int (*float_function)(float) = foo;
}
When compiled using x86-64 GCC 12.2, with -Wall, it produces the warning (Link):
warning: ...
|
I need to know if intmax_t is always "the same type" as uintmax_t except using two's complement instead of unsigned value.
Or putting this in formal terms, will the code below always compile ...
|
Unlike fundamental types – float, double and long double – are the new floatN_t types in <stdfloat> introduced in C++23 going to be always IEEE standard binary floating point types?
The ...
|
I'm making my own C compiler to try to learn as much details as possible about C. I'm now trying to understand exactly how volatile objects work.
What is confusing is that, every read access in the ...
|
What is the purpose of triple douple quotes """ in C#? It seems it is used for multiline text. But why not to use single double quotes? E.g.:
string text = """
some ...
|
Given the word abcd, how would I construct the following nested list?
[ (abcd) (a bcd) (ab cd) (abc d) (a b cd) (a bc d) (ab c d) (a b c d) ]
That is splitting the word in every way it can be, while ...
|
In C++20 we can use lambda expressions in unevaluated contexts. Consider the following C++20 code:
foo.cpp
#include <typeinfo>
struct Foo {
using T = decltype([]{});
}; // struct Foo
const ...
|
Greatest hits from previous weeks:
|
Given a list ["foo", "bar", "baz"] and an item in the list "bar", how do I get its index 1?
|
What are the stack and heap?
Where are they located physically in a computer's memory?
To what extent are they controlled by the OS or language run-time?
What is their scope?
What determines their ...
|
ECMAScript 6 introduced the let statement.
I've heard that it's described as a local variable, but I'm still not quite sure how it behaves differently than the var keyword.
What are the differences? ...
|
How do I call an external command within Python as if I had typed it in a shell or command prompt?
|
I'm running into a weird error when trying to install Django on my computer.
This is the sequence that I typed into my command line:
C:\Python34> python get-pip.py
Requirement already up-to-date: ...
|
What are the differences between git pull and git fetch?
|
I need to check the checked property of a checkbox and perform an action based on the checked property using jQuery.
For example, if the age checkbox is checked, then I need to show a textbox to enter ...
|
Can you answer these questions?
|
So I'm creating a site and one of the problems is that when I change the margins for content a link from the header can be presses only in the left-margin of the screen on mobile mode.
because of ...
|
<Button Content="{Binding Type}" Name="Ellipsis" Tag="{Binding ElementName=Ellipsis, Path=DataContext}">
<Button.ContextMenu>
<ContextMenu x:...
|
I am working for a team of scientists and have been given a pickle file we'll call theFile.p. I am trying to open and load the Pickle file via
opened_file = open("theFile.p", "rb")
...
|