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 |
exit () is used to a) exit () terminates the execution of the program itself b) exit () terminates the execution of the loop c) exit () terminates the execution of the block d) none of the above
main() { char as[] = "\\0\0"; int i = 0; do{ switch( as[i++]) {case '\\' : printf("A"); break; case 0 : printf("B"); break; default : printf("C"); break; }} while(i<3); }
4 Answers Vector, Vector India,
What is a scope resolution operator in c?
How are Structure passing and returning implemented by the complier?
Explain union. What are its advantages?
Why is c fast?
find a number whether it is even or odd without using any control structures and relational operators?
22 Answers Microsoft, Shashank Private Limited,
What is %lu in c?
Write a program which calculate sum of several number and input it into an array. Then, the sum of all the number in the array is calculated.
how to create duplicate link list using C???
what is the return value (status code) of exit() function.... what the arguments(integer value) passed to it means....
a C prog to swap 2 no.s without using variables just an array?