#include
using namespace std;
int main()
{
int a[8]={1,2,3,4},item=10,i=7;
while(a[i]=='\0')
{
i--;
}
i++;
a[i]=item;
for(i=0;i<8;i++)
{
cout<<a[i]<<endl;
}
return 0;
}
using namespace std;
int main()
{
int a[8]={1,2,3,4},item=10,i=7;
while(a[i]=='\0')
{
i--;
}
i++;
a[i]=item;
for(i=0;i<8;i++)
{
cout<<a[i]<<endl;
}
return 0;
}
This comment has been removed by the author.
ReplyDeleteThis comment has been removed by the author.
ReplyDeleteThis comment has been removed by the author.
ReplyDeleteThis comment has been removed by the author.
ReplyDelete#include
ReplyDeleteusing namespace std;
int main()
{
int a[8]={1,2,3,4},item=10,i=7;
while(a[i]=='\0')
{
i--;
}
i++;
a[i]=item;
for(i=0;i<8;i++)
{
cout<<a[i]<<endl;
}
return 0;
}