Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Untitled
k0mZ
Jun 1st, 2016
117
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
text
0.18 KB
| None
|
0
0
raw
download
clone
embed
print
report
int* even(int* A, int N, int* M){
int i=0,j=0;
int *B;
B = (int *)calloc(N,sizeof(int));
while ((A[i++]%2==0) && (i<N))
B[j++] = A[i];
*M = j;
return B;
}//end_even
Advertisement
Add Comment
Please,
Sign In
to add comment
Public Pastes
Untitled
5 min ago | 12.05 KB
Untitled
1 hour ago | 25.85 KB
Untitled
2 hours ago | 5.49 KB
Untitled
2 hours ago | 1.60 KB
Untitled
2 hours ago | 1.50 KB
Untitled
3 hours ago | 0.08 KB
Untitled
3 hours ago | 14.53 KB
Untitled
3 hours ago | 6.09 KB
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the
Cookies Policy
.
OK, I Understand
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!