

It allocates the memory to the variable on the heap and returns the void pointer pointing to the beginning address of the memory block. Malloc function in C++ is used to allocate a specified size of the block of memory dynamically uninitialized. If size is zero, the return value depends on the particular library implementation (it may or may not be a null pointer), but the returned pointer shall not be dereferenced. The content of the newly allocated block of memory is not initialized, remaining with indeterminate values. Allocates a block of size bytes of memory, returning a pointer to the beginning of the block. Outtextxy(x-170,y+20, "do you wnat to play the game") -BUTTON-//īutton(int xl,int yt,int xr,int yb, int status) If(!strcmp(dir,"tr")) bx+=bxspeed,by-=byspeed If(!strcmp(dir,"tl")) bx-=bxspeed,by-=byspeed If(!strcmp(dir,"br")) bx+=bxspeed,by+=byspeed If(!strcmp(dir,"bl")) bx-=bxspeed,by+=byspeed
