- #1
Raghav Gupta
- 1,011
- 76
Code:
#include<iostream.h>
#include<conio.h>
#include<stdio.h>
#include<string.h>
void main(){
clrscr();
char a[10],b[40];
cout<<"Enter sentence\n";
gets(a);
cout<<a ;\\ How to reverse here?
getch();}
How does one gets logic of a problem? I know I have to reverse each word but for that what code.
I have written some code above.
Code is for C++ not C.