My Profile

Ahmednagar, Maharashtra, India
I, Das ShrikKrishna J. MCA III IMSCD&R, Ahmednagar.

Saturday, 23 July 2011

Use of Alloc(DS using C)

#include<stdio.h>
#include<conio.h>
#include<alloc.h>
#include<process.h>
void main()
{
int *p,i;
p=(int *)malloc(10);
if(p==NULL)
{
printf("Memoro not");
exit(1);
}
for(i=0;i<5;i++)
{
printf("Enter %d number",i);
scanf("%d",p+i);
}
printf("NUmber r");
for(i=0;i<5;i++)
printf("%d",*(p+i));
getch();
}

 
Design by Free WordPress Themes | Bloggerized by Lasantha - Premium Blogger Themes | cheap international calls