Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

what type of errors are checked during compilation

Answer Posted / rajasekharreddy

#include<stdio.h>
#define SIZE 10
int main()
{
int arr[SIZE],i,arr_Size,position;

printf("enter array size\t");
scanf("%d",&arr_Size);

printf("enter numbers\t");

for(i=0;i<arr_Size;i++)
{
scanf("%d",&arr[i]);
}

printf("before delete element\n");

for(i=0;i<arr_Size;i++)
{
printf("\t%d",arr[i]);
}

printf("\nenter position to delete\t");

scanf("%d",&position);

--position;

arr[position]=0;

for(i=position;i<(arr_Size-1);i++)
{
arr[i]=arr[i+1];
}

arr_Size--;

printf("after delete element\n");

for(i=0;i<arr_Size;i++)
{
printf("\t%d",arr[i]);
}

return 0;
}

Is This Answer Correct ?    0 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

code for replace tabs with equivalent number of blanks

2167


What is hashing in c?

1165


What does nil mean in c?

1262


Why use int main instead of void main?

1125


Explain what are the advantages and disadvantages of a heap?

1092


Are the variables argc and argv are always local to main?

1024


Explain what are bus errors, memory faults, and core dumps?

1277


How we can insert comments in a c program?

1129


Is python a c language?

1012


to find the closest pair

2326


How was c created?

1064


process by which one bit patten in to another by bit wise operation is? (a) masking, (b) pruning, (c) biting, (d) chopping,

2429


What’s a signal? Explain what do I use signals for?

1113


Differentiate between null and void pointers.

1166


what are # pragma staments?

2046