This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdlib> | |
int main() | |
{ | |
// Exactement la même chose | |
// sauf que le 2e est alloué | |
int someArray[10]; | |
int* somePointer = malloc( sizeof(int) * 10 ); | |
// Changer la taille de somePointer |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// If you really wanna test this code trry http://csharppad.com/ | |
// I don't use this myself but it sounds legit enough | |
using System; | |
namespace NamespaceNoOneCaresAbout | |
{ | |
public class DerpClass | |
{ | |
public DerpClass(int somethingThatMustBePositive) |