67 095
Assignments Done
99,3%
Successfully Done
In November 2018

Answer to Question #8238 in C++ for GORDON

Question #8238
write a c plus plus program to input the set of array elements and print it in reverse order.
Expert's answer
#define N 5

class note {
public:
char element[99];
};

note notes[N];
int i;

void main(){

for (i=1;i<=N;i++){
printf("Enter an element: ");
scanf("%s",notes[i].element);
}

for (i=N;i>=1;i--){
printf("%s\n", notes[i].element);
}

}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be first!

Leave a comment

Ask Your question

Submit
Privacy policy Terms and Conditions