#include <stdio.h>void myfun(int *d,int c,int *b,int a) ;int main(void) int a=2,b=3,c=4 int d = 5 ; myfun(&a,b,&c,d) ; printf("%d %d %d",a,b,c,d); return 0;}void myfun(int *d,int c,int *b,int a) { a += *b ; *b *= c ; c += *d ; *d *= a ;}
Standard input is empty
#include <stdio.h> void myfun(int *d,int c,int *b,int a) ; int main(void) int a=2,b=3,c=4 int d = 5 ; myfun(&a,b,&c,d) ; printf("%d %d %d",a,b,c,d); return 0; } void myfun(int *d,int c,int *b,int a) { a += *b ; *b *= c ; c += *d ; *d *= a ; }
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!