como libertar memória em c
int *example = NULL; //create pointer
example = malloc(sizeof(int)); //allocate memory
free(example); //deallocate memory
Adventurous Aardvark
int *example = NULL; //create pointer
example = malloc(sizeof(int)); //allocate memory
free(example); //deallocate memory
#include <stdio.h>
char c[]="rishabh tripathi"; /* global variable stored in Initialized Data Segment in read-write area*/
const char s[]="HackerEarth"; /* global variable stored in Initialized Data Segment in read-only area*/
int main()
{
static int i=11; /* static variable stored in Initialized Data Segment*/
return 0;
}