60 likes | 220 Views
Declaring, Defining, Calling C Functions. // function declarations in myfile.hvoid foo ();void baz (int j);// function definitions in myfile.cppvoid baz (int j){ cout << j << endl; // prints passed value}void foo (){ int i = 7; // foo calls baz, passing variable i to it baz (i);
E N D