Toggle navigation
Courses
Questions
Tags
Users
AD 20161110 exercise 1
0
like
0
dislike
1.1k
views
請完成下列函式
void reverse(int *array,int size);
該函式會將array陣列中所有元素的位置顛倒。
並寫一個主程式測試你寫的函式。
[Exercise]
Essay (Open question)
-
asked
Nov 10, 2016
in
作業
by
Shun-Po
(
18k
points)
ID: 17220 -
Available when:
Unlimited
-
Due to:
Unlimited
|
1.1k
views
comment
Please
log in
or
register
to add a comment.
20
Answers
0
like
0
dislike
Hidden content!#include <stdio.h>
#include * * * * * * * **
void reverse(int *array,int size);
int main (void)
{
* * ** * * * ** array[5] = {1,2,3,4,5};
* ** * ** * * * **** * j=0;
* * * ** * ***
* * * * * * * ** ** * * *** * ** * * ** * 5);
* * * * * * * * * * * * *
* * ** ** ** * * * ** * * * * * **
** * * * ** * ** * ** * * ** * * * * * ",array[j]);