Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
ACCES FUNC
//gcc 5.4.0 #include <stdio.h> typedef struct{ int a; int b; }complex; void compadd(complex a, complex b){ complex c; c.a=a.a+b.a; c.b=a.b+b.b; printf("Adding: \n%d+%di\n",c.a,c.b); } void compsub(complex a,complex b){ complex c; c.a=a.a+(b.a*-1); c.b=a.b+(b.b*-1); printf("Subtracting:\n%d+%di\n",c.a,c.b); } void compmult(complex a,complex b){ int A,B,c,d; A=a.a*b.a; B= } int main(void) { complex a; complex b; a.a=1; a.b=2; b.a=3; b.b=4; compadd(a,b); compsub(a,b); return(0); }
run
|
edit
|
history
|
help
0
ele709 lab 3.2
Struct
1
3.1.3 Quick sort, Merge sort
Jai
hwkpractice
printing numbers without using loop
Card shuffling and dealing program using structures
Exploiting uninitialized variable 2
150112_FuncionesOrdenArray