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 are the advantages of using linked list for tree construction?
how to go with this?
How will you allocate memory to double a pointer?
typedef struct{ char *; nodeptr next; } * nodeptr ; What does nodeptr stand for?
Identify the correct argument for the function call fflush () in ANSI C: A)stdout B)stdin C)stderr D)All the above
34.what are bitwise shift operators? 35.what are bit fields? What is the use of bit fields in a structure declaration? 36.what is the size of an integer variable? 37.what are the files which are automatically opened when a c file is executed? 38.what is the little endian and big endian? 39.what is the use of fflush() function? 40.what is the difference between exit() and _exit() functions? 41.where does malloc() function get the memory? 42.what is the difference between malloc() and calloc() function? 43.what is the difference between postfix and prefix unary increment operators?
Given a single Linked list with lakhs of nodes and length unknown how do you optimally delete the nth element from the list?
How can I read a binary data file properly?
for (i <= 5 && i >= -1;++i; i > 0) { printf("%d ", i); }
what is the differance between pass by reference and pass by value.
Function to find the given number is a power of 2 or not?
input any 4 digit number and find the difference of all the digits?