Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

What is 'bus error'?

1160


Explain the advantages and disadvantages of macros.

1105


How do c compilers work?

1145


What is dynamic variable in c?

1040


How to set file pointer to beginning c?

1205


Tell me is null always defined as 0(zero)?

1091


What is void main () in c?

1215


What are disadvantages of C language.

1168


Difference between macros and inline functions? Can a function be forced as inline?

1281


Explain the difference between #include "..." And #include <...> In c?

1036


Is it possible to use curly brackets ({}) to enclose single line code in c program?

1325


a value that does not change during program execution a) variabe b) argument c) parameter d) none

1243


What is gets() function?

1143


Explain about the functions strcat() and strcmp()?

1058


How can I read/write structures from/to data files?

976