Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Easy String Reverse Example
//g++ 5.4.0 // #include <stdio.h> #include <string.h> int main(int argc, char* argv[]) { char testStr[] = "Hello World!"; char outStr[strlen(testStr)]; //A New string, the size of the test string int j = 0; for(int i = strlen(testStr); i > -1; i--){ //1: Reverse outStr[j] = testStr[i]; printf("%c",outStr[j]); j++; }
run
|
edit
|
history
|
help
0
Microsoft - # of fragments (optimised)
AVL - ith element
asa
Biggest even palindrom
ListTel
Default copy
CPP - Ex 5
c++ car racing game
2d array sum
Test 2(2021)