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
sort
Example
khcmknhc
EBO
bank queue
ghfhfgh
Optional conversions
Variable declarations in while loop conditions are also C++-only.
Exploring stringstreams
34534