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 scope rule of function in c?

636


Explain what is the stack?

725


Is main is a keyword in c?

712


How do I get an accurate error status return from system on ms-dos?

744


What are qualifiers?

694






Explain the use of function toupper() with and example code?

736


Write a Program to find whether the given number or string is palindrome.

742


What is the difference between ++a and a++?

816


What are nested functions in c?

657


What is the use of c language in real life?

636


What is typedef struct in c?

689


What are lookup tables in c?

648


What is ## preprocessor operator in c?

706


Explain how can I write functions that take a variable number of arguments?

690


#include main() { char s[] = "Bouquets and Brickbats"; printf(" %c, ",*(&s[2])); printf("%s, ",s+5); printf(" %s",s); printf(" %c",*(s+2)); }

772