#include
using namespace std;
int main()
{
int a[8]={1,2,3,4},i=7;
while(a[i]=='\0')
{
i--;
}
a[i]='\0';
for(i=0;i<8;i++)
{
cout<<a[i]<<endl;
}
return 0;
}
using namespace std;
int main()
{
int a[8]={1,2,3,4},i=7;
while(a[i]=='\0')
{
i--;
}
a[i]='\0';
for(i=0;i<8;i++)
{
cout<<a[i]<<endl;
}
return 0;
}
#include
ReplyDeleteusing namespace std;
int main()
{
int a[8]={1,2,3,4},i=7;
while(a[i]=='\0')
{
i--;
}
a[i]='\0';
for(i=0;i<8;i++)
{
cout<<a[i]<<endl;
}
return 0;
}