Re: [algogeeks] linux program in c

2011-10-02 Thread rahul sharma
just given a basic psudocode On Sun, Oct 2, 2011 at 11:11 PM, Hatta wrote: > what is 'print'? > there's no such thing in C. > > > On Sun, Oct 2, 2011 at 4:49 AM, rahul sharma > wrote: > > main() > > { > > int pid; > > pid=fork(); > > if(pid==0) > > { > > print child; > > print("...",getpid());

Re: [algogeeks] linux program in c

2011-10-02 Thread Hatta
what is 'print'? there's no such thing in C. On Sun, Oct 2, 2011 at 4:49 AM, rahul sharma wrote: > main() > { > int pid; > pid=fork(); > if(pid==0) > { > print child; > print("...",getpid()); > } > else > { > print print; > print("...",getpid()); > } > > -- > You received this message because yo

[algogeeks] linux program in c

2011-10-02 Thread rahul sharma
main() { int pid; pid=fork(); if(pid==0) { print child; print("...",getpid()); } else { print print; print("...",getpid()); } -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this group, send email to algogeeks@googlegroups.com. To

Re: [algogeeks] Linux

2010-09-22 Thread aswath G B
head -10 as.c | tail -6 Sample O/P r...@hp-laptop:~/ds# *cat as.c* #include int main() { char a; int b; short c; double d; clrscr(); a=b=0; c=d=1; a++;--b;c++;--d; printf("%p,%p,%p,%p",a,b,c,d); } r...@hp-laptop:~/ds# *head -10 as.c | tail -6*

[algogeeks] Linux

2010-09-21 Thread Divesh Dixit
How to get line no. 5 to line no. 10 only from a file.. using tail or head command.? -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this group, send email to algoge...@googlegroups.com. To unsubscribe from this group, send email