write a program to insert an element at the specified
position in the given array in c language
Answer Posted / bhagya
#include<stdio.h>
#include<conio.h>
void main()
{
char c[20]="this is a string";
int n;
printf("en etr index value to which the element has to
be inserted");
c[n]=getchar();
printf("the string after inserted");
printf("%s",c);
getch();
}
Is This Answer Correct ? | 25 Yes | 55 No |
Post New Answer View All Answers
What is the difference between array and linked list in c?
Can a pointer point to null?
What happens if a header file is included twice?
What is difference between class and structure?
Are the expressions * ptr ++ and ++ * ptr same?
What is the difference between Printf(..) and sprint(...) ?
write a C program: To recognize date of any format even formats like "feb-02-2003","02-february-2003",mm/dd/yy, dd/mm/yy and display it as mm/dd/yy.
provide an example of the Group by clause, when would you use this clause
Describe the header file and its usage in c programming?
Differentiate between a structure and a union.
Why do some versions of toupper act strangely if given an upper-case letter?
What is the symbol indicated the c-preprocessor?
How can I write a function analogous to scanf?
#include
When should the volatile modifier be used?