#include<iostream>
#include<cstdlib>
using namespace std;
int* anik()
{
int *p;
p = (int*) malloc(sizeof(int));
*p = 10;
return p;
}
int main()
{
int *x = anik();
cout << *x << endl;
return 0;
}
#include<cstdlib>
using namespace std;
int* anik()
{
int *p;
p = (int*) malloc(sizeof(int));
*p = 10;
return p;
}
int main()
{
int *x = anik();
cout << *x << endl;
return 0;
}
Comments
Post a Comment