Wednesday, 17 October 2012

Program Of Array Using Malloc In C

#include<stdio.h>
#include<conio.h>
 
main()
 
{
 
int *a,i,n;
 
clrscr();
 
printf("How many Blocks U want to Create For Array =");
 
scanf("%d",&n);
 
for(i=0;i<n;i++)
{
 
}
 
for(i=0;i<n;i++)
 
{
 
printf("a[%d]==> ",i);
 
scanf("%d",&a[i]);
 
}
 
printf("\n==============Array is==============\n");
 
for(i=0;i<n;i++)
 
{
 
}
 
getch();
 
}

No comments:

Post a Comment