python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
Use memcpy_s in c++
I am using c++. I want to build code which contains memcpy_s on linux. I am using gcc 9.3. I made some modifications.
#ifdef __cplusplus
extern "C" {
#define _STDC_WANT_LIB_EXT1_ 1
#include ...
Vladimir Yanakiev
Votes: 0
Answers: 0
Why exactly using of a floating-point arithmetic in an integer constant expression is invalid?
In C11 (and later) integer constant expression shall only have operands that are, in particular:
floating constants that are the immediate operands of casts
The following code:
int a[ A > B ? 16 ...
pmor
Votes: 0
Answers: 2
Are user-defined identifiers beginning with a single underscore non-problematic?
Is this identifier non-problematic:
_var
C11, 7.1.3 Reserved identifiers, 1
All identifiers that begin with an underscore are always reserved for use as identifiers with file scope in both the ordin...
pmor
Votes: 0
Answers: 4