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 |
write a programme to convert temperature from farenheit to celcius?
While(1) { } when this loop get terminate is it a infinite loop?
how to multiply two number taking input as a string (considering sum and carry )
What is the difference between null pointer and the void pointer?
What are the uses of null pointers?
Explain how can you check to see whether a symbol is defined?
the maximum width of a c variable name can be a) 6 characters b) 8 characters c) 10 characters d) 20 characters
why should i select you?
Why is c called c?
How main function is called in c?
Hierarchy decides which operator a) is most important b) is used first c) is fastest d) operates on largest numbers
How to access or modify the const variable in c ?
16 Answers HCL, HP,