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
How do I get an accurate error status return from system on ms-dos?
What is a static variable in c?
Explain what is the benefit of using enum to declare a constant?
What is the process to generate random numbers in c programming language?
simple program of graphics and their output display
what is the differnce between programing langauge and tool? is sas is a programing langauge r tool?
How can you allocate arrays or structures bigger than 64K?
How many types of operator or there in c?
How can I use a preprocessorif expression to ?
Why do we use static in c?
What is the best way to comment out a section of code that contains comments?
What is the difference between far and near ?
if a is an integer variable, a=5/2; will return a value a) 2.5 b) 3 c) 2 d) 0
Describe dynamic data structure in c programming language?
How can I call system when parameters (filenames, etc.) Of the executed command arent known until run time?