Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- //prep to copy two arrays of integers into one. (form a union)
- int main()
- {
- int i=0;
- int a[] = {1,2,3,4,5,6,7,8};
- int b[] = {14,15,16};
- int M = sizof(a) / sizeof(int);
- int N = sizof(b) / sizeof(int);
- int* c = malloc( (M+N)* sizeof(int) );
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement