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 is the stackpointer
How does free() know explain how much memory to release?
Compare array data type to pointer data type
what is the benefit of c30
What are dangling pointers in c?
How can I do serial ("comm") port I/O?
void main() { int x=25,y=32; clrscr(); x=x++ + y++; y=++x + ++y; printf("%d%d",x,y); }
helllo sir , what is the main use of the pointer ,array ,and the structure with the example of a programe
how many argument we can pas in in a function
Given an array of characters, how would you reverse it? How would you reverse it without using indexing in the array?
What is the use of gets and puts?
c program to subtract between two numbers without using '-' sign and subtract function.