prog.c:4:3: warning: data definition has no type or storage class
massive=f=(char*)malloc(10*sizeof(char));
^
prog.c:4:3: warning: type defaults to 'int' in declaration of 'massive' [-Wimplicit-int]
prog.c:4:3: error: conflicting types for 'massive'
prog.c:1:9: note: previous declaration of 'massive' was here
char *massive, *f;
^
prog.c:4:3: warning: implicit declaration of function 'malloc' [-Wimplicit-function-declaration]
massive=f=(char*)malloc(10*sizeof(char));
^
prog.c:4:20: warning: incompatible implicit declaration of built-in function 'malloc'
massive=f=(char*)malloc(10*sizeof(char));
^
prog.c:4:11: warning: initialization makes integer from pointer without a cast
massive=f=(char*)malloc(10*sizeof(char));
^
prog.c:4:3: error: initializer element is not constant
massive=f=(char*)malloc(10*sizeof(char));
^
prog.c:6:3: error: expected identifier or '(' before 'while'
while (toggle==0){
^