Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Initialise arrays with N number
//clang 3.7.0 #include <iostream> using namespace std; int main() { int a[3]; std::cout << a[0] << "\n"; std::cout << a[1] << "\n"; std::cout << a[2] << "\n"; int b[3] = { 0 }; std::cout << b[0] << "\n"; std::cout << b[1] << "\n"; std::cout << b[2] << "\n"; int c[3]; memset(c, 0, sizeof(b)); std::cout << c[0] << "\n"; std::cout << c[1] << "\n"; std::cout << c[2] << "\n"; }
run
|
edit
|
history
|
help
0
Graphs Iteration2 Directed Graphs
std::function copies
GetTypeName
Example of custom deleter to manage a resource.
Vector examples....
C++ does not have reference-to-reference types
ljblblljkl
CS1428 SI Tuesday
Combination
Maze problem solution