









Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!










By Anam Javaid COMSATS University Islamabad, Wah Campus
❑void t1(int x, int y = 0, int z); // Illegal ❑void t2(int x = 0, int y = 0, int z); // Illegal ❑However, the following declarations are fine: ❑void t3(int x, int y = 0, int z = 0); // Legal ❑void t4(int x = 0, int y = 0, int z = 0); // Legal
t3(1, , 20); t4(, , 20); but the following calls are fine: t3(1); // Parameters y and z are assigned a default value t4(1, 2); // Parameter z is assigned a default value