write a program to delete a number passing specific position from your array

Recommended Answers

All 4 Replies

write a program to delete a number passing specific position from your array

write a program to delete a number passing specific position shifting the element of an array to the left

Show your code so far ok?

{#include<iostream.h>
using namespace std;

int main()
{
 array i[5];
 int position;
 cout<<"\nPlease enter the no=";
 for(int n=0;n<5;i++)
 {
   cin>>i[n];
 }
 cout<<"\nEnter the position of the no u want to delete=";
 cin>>position;

 i[position]==NULL;

 cout<<"\nSuccessfully deleted";
 return 0;
 }
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.