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 register variable in c language?
What is integer constants?
Can you please explain the difference between exit() and _exit() function?
Explain what are the standard predefined macros?
Explain how do you print an address?
What is queue in c?
Why & is used in c?
what is event driven software and what is procedural driven software?
What is a pointer value and address in c?
How can I manipulate individual bits?
Explain how do you list a file’s date and time?
What is floating point constants?
What is a dynamic array in c?
What is static volatile in c?
What are the rules for identifiers in c?