Skip to content

Instantly share code, notes, and snippets.

@a1exlism
Created April 17, 2019 05:43
Show Gist options
  • Save a1exlism/633f159f7cb74f33139a5e7217778f9c to your computer and use it in GitHub Desktop.
Save a1exlism/633f159f7cb74f33139a5e7217778f9c to your computer and use it in GitHub Desktop.
// It Depand on value
// 1. Value 0 | -1
#include <string.h>
memset(arr, -1, sizeof(arr));
// 2. any value
#include <algorithm>
using namespace std;
fill(arr, arr+len, VAL); // address
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment