/* Passing to a function * passing.cpp * May 20 2008 */ #include using namespace std; struct Student { int no; char grade[14]; }; void display(struct Student student); int main( ) { struct Student harry = {975, "ABC"}; display(harry); return 0; } void display(struct Student student){ cout << "Grades for " << student.no; cout << " : " << student.grade << endl; }