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


Please Help Members By Posting Answers For Below Questions

What is a floating point in c?

616


What is the use of a static variable in c?

604


What are the types of c language?

574


What is the use of f in c?

568


Write a program that accept anumber in words

1268






Write a program to implement a round robin scheduler and calculate the average waiting time.Arrival time, burst time, time quantum, and no. of processes should be the inputs.

638


What is a structural principle?

651


What is I ++ in c programming?

635


How can I list all of the predefined identifiers?

591


stripos — Find position of first occurrence of a case- insensitive string int stripos ( char* haystack, char* needle, int offset ) Returns the numeric position of the first occurrence of needle in the haystack string. Note that the needle may be a string of one or more characters. If needle is not found, stripos() will return -1. The function should not make use of any C library function calls.

1867


What is the difference between declaring a variable by constant keyword and #define ing that variable?

2731


string reverse using recursion

1827


What are preprocessor directives in c?

660


Is it valid to address one element beyond the end of an array?

696


What are the 4 types of functions?

589