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
What is scope rule of function in c?
Explain what is the stack?
Is main is a keyword in c?
How do I get an accurate error status return from system on ms-dos?
What are qualifiers?
Explain the use of function toupper() with and example code?
Write a Program to find whether the given number or string is palindrome.
What is the difference between ++a and a++?
What are nested functions in c?
What is the use of c language in real life?
What is typedef struct in c?
What are lookup tables in c?
What is ## preprocessor operator in c?
Explain how can I write functions that take a variable number of arguments?
#include main() { char s[] = "Bouquets and Brickbats"; printf(" %c, ",*(&s[2])); printf("%s, ",s+5); printf(" %s",s); printf(" %c",*(s+2)); }