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
code for replace tabs with equivalent number of blanks
What is hashing in c?
What does nil mean in c?
Why use int main instead of void main?
Explain what are the advantages and disadvantages of a heap?
Are the variables argc and argv are always local to main?
Explain what are bus errors, memory faults, and core dumps?
How we can insert comments in a c program?
Is python a c language?
to find the closest pair
How was c created?
process by which one bit patten in to another by bit wise operation is? (a) masking, (b) pruning, (c) biting, (d) chopping,
What’s a signal? Explain what do I use signals for?
Differentiate between null and void pointers.
what are # pragma staments?