Code:
#include<stdio.h>
#include<ctype.h>
//// You have a stray open parenthesis here for some reason.
//// You probably shouldn't be using extended characters in identifiers.
//// I don't know anything about that, though.
//// Maybe your compiler doesn't complain about it, but mine does.
(int büyükharfler(char dizi[])
{
int i = 0;
//// This is a for loop, not a while loop.
//// And you need to use == to compare for equality, not =
while (i = 10; dizi[i] = '\0'; i++)
dizi[i] = toupper(dizi[i]);
return 0;
}
//// You shouldn't name your function with the same name
//// as a standard library function.
int strlen(char dizi[])
{
int i = 0;
while (dizi[i] != '\0')
++i;
return i;
}
int main()
{
char a[10];
//// Since a C-string uses a '\0' char to mark the end,
//// the maximum number of chars the user can enter would be 9.
//// If you need it to be 10, make the size of a 11.
printf("Enter a String(Word) (MAX 10 CHARACTER):");
//// The name a an array becomes a pointer to its first element in
//// most expressions. Therefore, you shouldn't use the & here.
//// Also you should limit the maximum number of chars that will be read
//// by putting that number (one less than the array size) between the
//// % and the s in the format.
scanf("%s", &a);
printf("Len of %s %d", a, strlen(a));
//// It doesn't make sense for you to print the return value of büyükharfler.
//// Actually, it probably should be a void function (no return value).
//// Just call it before the printf, then just print the array.
printf("Büyük Harflerle %s %d", a, büyükharfler(a));
//// This is always sad. Can't you set your IDE to keep the window open?
getchar();
getchar();
//// You should return 0 at the end of main.
}