function

function - return;} %gcc funreview.c %a.out <

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
Script started on Wed Mar 16 16:52:19 2005 %cat funreview.c #include<stdio.h> void fun(int a,int *b); int main (void){ int a,b; a=3; b=4; fun(a,&b); printf("a = %d b= %d\n",a,b); fun(b,&a); printf("a= %d b= %d\n",a,b); return(0);} void fun(int a, int *b){ a=20; *b=30; printf("in function a= %d b= %d\n",a,*b);
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: return;} %gcc funreview.c %a.out &lt; funreview##[K##[K##[K##[K##[K##[K##[K##[K##[K###[K# in function a= 20 b= 30 a = 3 b= 30 in function a= 20 b= 30 a= 30 b= 30 %exit exit Script done on Wed Mar 16 16:52:45 2005...
View Full Document

Ask a homework question - tutors are online