- World's Largest Collection of Interview Questions & Answers, FAQs, queries, sample papers, exam papers, dumps, what, why, how, where, when questions
Interview Success Kit - Get Success in Job Interviews Interview Success Kit - 30,000 Interview Que. & Ans.
Covers 30,000+ Interview Questions asked in actual MNC Interviews - all with model answers.
Get Your Dream Job Now -
Sponsored Links
Interview Questions
Our Services

Question :
Write a program to insert an element in a linear array array?

Posted by: pratyaksh on 8/19/2013

Contact pratyaksh Contact pratyaksh
Category Arrays in C Interview Questions
Rating (3.8) By 45 users
Added on 8/19/2013
Views 698
Rate it!

/*Inserting an element into and deleting an element from an array*/
void display(int*,int);
void insert(int*,int*,int,int);
void del(int*,int*,int);
int main()
int a[10],noe;
int i,pos,nel;
Enter noe");
Enter the position and element to be inserted");
scanf("%d %d",&pos,&nel);

return 0;
void insert(int*p,int *noe,int pos,int nel)
int i;
void display(int*p,int noe)
int i;

Posted by: B.N.V.R.Ganesh

Contact B.N.V.R.Ganesh Contact B.N.V.R.Ganesh

If you have the better answer, then send it to us. We will display your answer after the approval.
Rules to Post Answers in

  • There should not be any Spelling Mistakes.
  • There should not be any Gramatical Errors.
  • Answers must not contain any bad words.
  • Answers should not be the repeat of same answer, already approved.
  • Answer should be complete in itself.
  • Name :*
    Email Id :*
    Answer :*
    Verification Code Code Image - Please contact webmaster if you have problems seeing this image code Not readable? Load New Code
    Process Verification Enter the above shown code: *
    Inform me about updated answers to this question

    Related Questions
    View Answer
    Does mentioning the array name gives the base address in all the integers?
    View Answer
    How would you use qsort() function to sort the name stored in an array of pointers to string?
    View Answer
    Write a program for n lines
    1 2 3 4 5
    16 17 18 19 6
    15 24 25 30 7
    14 23 22 21 8
    13 12 11 10 9
    View Answer
    What is the difference between null array and an empty array?
    View Answer
    Code for swapping of two numbers without using temporary variable using C.
    View Answer
    Is it better to use a pointer to navigate an array of values,or is it better to use a subscripted array name?

    View Answer
    Can the sizeof operator be used to tell the size of an array passed to a function?

    View Answer
    How to remove duplicate elements from an array

    View Answer
    How can you sort the elements of the array in descending order?
    View Answer
    Array is an lvalue or not?
    View Answer
    Can the size of an array be declared at runtime?
    View Answer
    Can the sizeof operator be used to tell the size of an array passed to a function?
    View Answer
    Is it better to use a pointer to navigate an array of values,or is it better to use a subscripted array name?
    View Answer
    When does the compiler not implicitly generate the address of the first element of an array?
    View Answer

    Please Note: We keep on updating better answers to this site. In case you are looking for Jobs, Pls Click Here - Best Freshers & Experienced Jobs Website.

    View ALL Arrays in C Interview Questions & Answers

    User Options
    Latest 20 Questions
    How to Retrieve a Cookie Value ?
    How to Create a Cookie?
    What is ViewState ?
    What are different methods of session maintenance in ASP.NET?
    What is cross cutting concern and concern in spring AOP ?
    What are the important beans lifecycle methods ?
    Explain the advantages of using DAO module?
    What is SQLProvider ?
    How struts application can be integrated with spring?
    What are the advantages of spring framework?
    What is ?Throws advice? in Spring ?
    What is Metadata Autoproxying ?
    Describe about DAO in Spring framework ?
    What is called an Advice ?
    What is IOC?
    What are the types of Dependency Injection?
    What are the different Modes of Autowiring ?
    Define Application context module?
    Why Spring framework is needed?
    What is called Spring MVC?

    Copyright ©2003-2016, All Rights Reserved.
    Privacy Policy | Terms and Conditions

    Download Yahoo Messenger | Placement Papers| FREE SMS | ASP .Net Tutorial | Web Hosting | Dedicated Servers | C Interview Questions & Answers

    Testing Articles | Testing Books | Testing Certifications | Testing FAQs | Testing Downloads | Testing Interview Questions | Testing Jobs | Testing Training Institutes

    Cache = 0 Seconds