View Single Post
Light Poster
3Aug2007,15:57  
psapikas's Avatar
Quote:
Originally Posted by seeguna
Try this coding in the manner...........u got answer

#include <stdio.h>
void afunction(int *x)

{
x=new int;
*x=12;
}
int main()
{
int v=10;
afunction(&v);
printf("%d",v);
return 0;
}
This also not working