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