call by refrence1

call by refrence1 - { *c=33; d=55; } void main() {int...

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

View Full Document Right Arrow Icon
A=33 B =3 Q : write the output for the following code ? #include<iostream.h> void val(int *c,int d)//call by refrence
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: { *c=33; d=55; } void main() {int a=3,b=3; val(&amp;a,b); cout&lt;&lt;endl&lt;&lt;&quot;a=&quot;&lt;&lt;a; cout&lt;&lt;endl&lt;&lt;b&lt;&lt;&quot;b=&quot;&lt;&lt;endl; }...
View Full Document

Ask a homework question - tutors are online