Write a function that takes a pointer to char named pc, and returns it

Do these:

  1. declare ex1 as pointer to char
  2. declare ex2 as pointer to pointer to char
  3. declare ex3 as array 10 of pointer to char
  4. declare ex4 as pointer to array 30 of char
  5. declare ex5 as array 10 of pointer to array 500 of char
  6. declare ex6 as const pointer to int
  7. declare ex7 as pointer to const int.
  8. write a function that takes a pointer to char named pc, and returns it
  9. write a function that takes a pointer to int named pi, and returns it as a pointer to float
  10. write a function that takes a pointer to int named pi, and verifies if the value pointed
    to by pi is odd or even, and displays a message saying which one it is
  11. implement a dispatch table of three functions which print “Catfish”, “chrisname” and
    “devonrevenge” and let the user choose which one to run by entering 1, 2 or 3

câu số 8 có nghĩa là gì vậy ạ? mong mọi người giúp em ạ

Viết 1 function tên là pc có tham số đầu vào kiểu char pointer và thực hiện return nó. Các câu sau tương tự

4 Likes
83% thành viên diễn đàn không hỏi bài tập, còn bạn thì sao?