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
Why is it that not all header files are declared in every C program?
What is the code in while loop that returns the output of given code?
What is enumerated data type in c?
How can you determine the maximum value that a numeric variable can hold?
What does the error 'Null Pointer Assignment' mean and what causes this error?
Lists the benefits of c programming language?
What is a class c rental property?
why arguments can generally be passed to functions a) sending the values of the arguments b) sending the addresses of the arguments c) a & b d) none of the above
Explain void pointer?
How can I implement a delay, or time a users response, with sub-second resolution?
What are the 4 data types?
How many types of errors are there in c language? Explain
What is pivot in c?
How many main () function we can have in a project?
Is c procedural or object oriented?