Code:
# include <stdio.h>
# include <stdlib.h>
int main()
{
FILE *fp;
char array[1000];
int z=5; /*tok*/
char ch;
int i=0;
int k=0;
int q=fputc(z,stdin);
fp=fopen("c:\\Borland\\Bcc55\\Bin\\call.c","w+"); 
while ((char) ch=fgetc(fp) && !feof(fp)){
	array[i]=ch;i++;}
while (k<150){
	if (array[k]=='z')z++;array[k+2]++;k++;}
for (k=0;k<10000;k++)fprintf(fp,"%d",array[k]);
system("bcc32 call.c");
system("call");
fclose(fp);
return 0;
}
hi all, this is a slow,hackish,poorly written program that's supposed to print a value to the screen, change the source code, compile again, and run...It compiles, but doesnt do anything when run. Absolutely nothing. Just like a program that does something internally and prints nothing to the screen. Can anyone help me? Bcc32 gives the following errors:

Warning W8060 call.c 14: Possibly incorrect assignment in function main
Warning W8004 call.c 23: 'q' is assigned a value that is never used in function
main
Warning W8004 call.c 17: 'z' is assigned a value that is never used in function
main

Thank you a lot.