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 not deleted user 125860

C is a general-purpose computer programming language used for operating systems, games, and other high performance work and is clearly distinct from C++. It was developed in 1972 by Dennis Ritchie for use with the Unix operating system.

2 votes

Create a C style char** from a C++ vector<string>

In the C++ headers like <cstring>, the C functions are in the std namespace. in del_strlist, delete[] needs to be used two times instead of delete, because the memory was allocated using operator new[] … strlist cstrings(original_strings.begin(), original_strings.end()); execve("program", cstrings.data(), nullptr); // no need to call function to delete cstrings } Some older C APIs may take …
tmlen's user avatar
  • 234
4 votes
Accepted

Computational verification of Collatz conjecture using OpenCL

The lookup table lut should be hard-coded in the source code and defined outside the kernel function as a __constant space global variable. As it is now, every thread would have to recalculate the en …
tmlen's user avatar
  • 234