Find and write the output of the following C++ program code:
Note: Assume all required header files are already being included in the program.
void main( )
{
int Ar[ ] = { 6 , 3 , 8 , 10 , 4 , 6 , 7} ;
int *Ptr = Ar , I ;
cout<<++*Ptr++ << '@' ;
I = Ar[3] - Ar[2] ;
cout<<++*(Ptr+I)<<'@'<<"\n" ;
cout<<++I + *Ptr++ << '@' ;
cout<<*Ptr++ <<'@'<< '\n' ;
for( ; I >=0 ; I -=2)
cout<
}
Answers
Answered by
1
In the following C++ program what is the expected is the output of a continued series. In the output the “ptr” is defined as the constant pointer that holds address of a constant integer “I". In the output an array of seven integers is declared. The size will automatically be calculated from the number of values. The size value in this case will be 7.
On observing carefully, the output derived will be -
7@11@
6@8@
11@3@
Similar questions