fork download
  1. #include <stdio.h>
  2.  
  3. char getVector(char vector[], int pos) {
  4. return vector[pos];
  5. }
  6.  
  7. int main() {
  8. char vector[5] = {'V', 'e', 't', 'o', 'r'};
  9. printf("%c", getVector(vector, 0));
  10. }
  11.  
  12. //https://pt.stackoverflow.com/q/44054/101
Success #stdin #stdout 0s 4532KB
stdin
Standard input is empty
stdout
V