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 'bus error'?
Explain the advantages and disadvantages of macros.
How do c compilers work?
What is dynamic variable in c?
How to set file pointer to beginning c?
Tell me is null always defined as 0(zero)?
What is void main () in c?
What are disadvantages of C language.
Difference between macros and inline functions? Can a function be forced as inline?
Explain the difference between #include "..." And #include <...> In c?
Is it possible to use curly brackets ({}) to enclose single line code in c program?
a value that does not change during program execution a) variabe b) argument c) parameter d) none
What is gets() function?
Explain about the functions strcat() and strcmp()?
How can I read/write structures from/to data files?