hi
I want to write a function which takes int as input and returns a string like this.
char GetString(int iNo)
{
switch(iNo)
{
case 0:
return "Zero";
break;
case 1:
return "One";
break;
}
}
void main()
{
int i;
printf("Enter number");
scanf("%d"; i);
char str = GetString(i);
}
but am getting error. How to write this kind of function in C? Please help, its urgent
Thanks