#include <stdlib.h> #include <unistd.h> #include <sys/types.h> #include <sys/wait.h> // This program works well in linux // or use gcc compiler int main(int c, char **v) { /*fork is used to create a child process and make the process to sleep for given milli seconds and atlast the process with minimum sleep get printed using this we can sort the array Note: This is fun program cannot be used in productive environment Time complexity is high for big numbers */ while (--c > 1 && !fork()); sleep(c = atoi(v[c])); wait(0); return 0; }
what's Vim? Vim is a highly configurable text editor for efficiently creating and changing any kind of text. It is included as "vi" with most UNIX systems and with Apple OS X ---> From Vim.org when i first heard it, what a command line editor which is awesome and i said to myself NO WAY, there are tons of editor which looks good and easy learn curve such as Atom,Sublime,VSCode and bunch others What makes vim special than other editors? Different from everything you have used before ( because it has modes - insert mode,visual mode,Command mode ) Forget the mouse ( why?...
Comments
Post a Comment