C
c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
// Created by [B.S.] BITTU
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
// Check Examples
//Compiler version gcc 6.3.0
char **buffer;
char** alloc(char **ptr,int index)
{
ptr = (char**)malloc(sizeof(char*[index+1]));
ptr[index] = (char*)malloc(sizeof(char)*260);
return ptr;
}
int main()
{
buffer = alloc(buffer,0);
Enter to Rename, Shift+Enter to Preview
OUTPUT
Run