What will be the output of the following piece of code when executed?
#include<iostream.h>
voidf(int*iptr)
{
*iptr=1;
}
main()
{
int i=0;
f(&i);
cout<<"The value is"<<i<<ends];
return 0;
}
The output of the following piece of
code when executed will be:-
#include<iostream.h>
voidf(int*iptr)
{
*iptr=1;
}
main()
{
int i=0;
f(&i);
cout<<"The value
is"<<i<<ends];
return 0;
}
Output:-
0.