Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
sorting using array and pointer
#include <iostream> #include <algorithm> using namespace std; int main() { int len; string name[] = {"samuel", "david", "moses", "joy", "joshua"}; string *pin = name; len=sizeof(name)/sizeof(name[0]); sort(name,name+len); for(int i =0; i <len; i++) cout<<* (pin +i)<<endl; }
run
|
edit
|
history
|
help
0
Please
log in
to post a comment.
stream1
sdefrgthyjukiujyhtg
123
TREE - path from root to leaf with given sum
DBeach Resort 4R8J-8P (State of Rio Grande.do Norte Brazil)
g++ -g bug
shell sort
pow implementation
logcOperator
euler tour (by pure theory)
Please log in to post a comment.