Hi
please tell me what's the problem with my code ?
Code:
#include <stdio.h>
#include <ctype.h>
#define MaxChars 100
void convertToUpperCase( char string[], int stringSize);
int main()
{
char string[MaxChars];
printf("Enter a string to convert to upper case: ");
scanf("%[^\n]s",string);
convertToUpperCase( string,(MaxChars));
printf( "The string after conversion is: %s\n", string );
}
void convertToUpperCase( char string[], int stringSize)
{
while ( stringSize != '\0' )
{
stringSize = toupper (stringSize );
++stringSize;
}
}