// g++ string-reverse.cpp -o a.out ; #include <iostream> ; #include <string> ; using namespace std; ; void swap(char *x, char *y) { ... <看更多>
Search
Search
// g++ string-reverse.cpp -o a.out ; #include <iostream> ; #include <string> ; using namespace std; ; void swap(char *x, char *y) { ... <看更多>
27 Answers 27 · first point a pointer to the last char of the string · read the content pointed by the pointer in reverse order. #include <stdio.h> ... ... <看更多>
string reverse c code. ... stringrev.c. #include<stdio.h>. #include<string.h>. char s[] = "rohit";. void reverse(int);. int main(). {. printf("%s",s);. ... <看更多>
Write code to reverse a C-Style String (C-String means that “abcd” is represented as five characters, including the null character ). ... <看更多>