카타 8급 Find the position!

C[ | ]

char* position(char alphabet) {
  char *res;
  asprintf(&res, "Position of alphabet: %d", alphabet-'a'+1);
  return res;
}
char* position(char alphabet) {
  char *res;
  asprintf(&res, "Position of alphabet: %d", alphabet-96);
  return res;
}
char* position(char alphabet) {
  char* res = calloc(25,sizeof(char));
  sprintf(res, "Position of alphabet: %d", alphabet-'a'+1);
  return res;
}
문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}