Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
iota_30-Seconds-of-C++
//Microsoft (R) C/C++ Optimizing Compiler Version 19.00.23506 for x64 #include <algorithm> #include <iostream> #include <numeric> int main() { int arr[10]; //Initialising the starting value as 500 int num = 500; //Applying the function iota to each element std::iota(arr, arr + 10, num); // Printing the final output for(int i = 0; i<10; i++) std::cout<<arr[i]<<" "; return 0; }
run
|
edit
|
history
|
help
0
Waiting for Multiple Objects
Copy elision sample modern C++
Template float/int comparison
div64 inline asm
Computing factorial of an integer with recursion and iteration
Zero
narrow_cast
map_file_mangling
Workaround for https://github.com/Project-OSRM/osrm-backend/pull/4385
du