what type of errors are checked during compilation
Answers were Sorted based on User's Feedback
Answer / 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 |
What are preprocessor directives?
1234554321 1234 4321 123 321 12 21 1 1 12 21 123 321 1234 4321 1234554321
What are terms in math?
convert 0.9375 to binary
what is difference between overriding and overloading?
Write an algorithm for implementing insertion and deletion operations in a singly linked list using arrays ?
what is the difference between strcpy() and memcpy() function?
why i join syntel?
23 Answers ABC, Syntel, TCS,
write a program in reverse the string without using pointer,array,global variable declaration,lib fun only using a function?
What does a function declared as pascal do differently?
Write a code to generate a series where the next element is the sum of last k terms.
What are integer variable, floating-point variable and character variable?