Function which is returning char data type in c programming.

char find_character();
void main(){
char character;
character=find_character();
printf("Character : %c",character);
getch();
}
char find_character(){
char * string="cquestionbank",temp;
string+=3;
temp=*string;
return temp;
}
Output: e
Post a Comment