Its a code to convert lowercase chars in a vector to uppercase chars. Im getting error in lines 21,23,24,26,29. Im newbie programing in C. Please help me.
int main()
{
char orig[30];
char dest[30];
printf("Write a string :");
scanf("%s",orig);
char uppercase(dest,orig);
printf("uppercase string = ",dest);
}
char uppercase(char destination,char origin){
int i = 0;
while(origin[i]!='\0'){
if(origin[i]>='a'&& origin[i]<='z'){
destination[i]= origin[i] +'A'-'a';
}
else destination[i]=origin[i];
i++;
}
destination[i]='\0';
return destination;
}