i tried ur code & it gives the same output as wen u execute the command on terminal.
On Wed, Sep 14, 2011 at 3:03 PM, UTKARSH SRIVASTAV <[email protected]>wrote: > > if i write on terminal echo {a,b,c}{a,b,c}{a,b,c} then i get the output all > possible combination of a,b,c and if i write like this > > main() > { > system("echo {a,b,c}{a,b,c}{a,b,c} "); > } > output : {a,b,c}{a,b,c}{a,b,c} > why? > in system command whatever we write is taken like a command > > > -- > *UTKARSH SRIVASTAV > CSE-3 > B-Tech 3rd Year > @MNNIT ALLAHABAD* > > > -- > You received this message because you are subscribed to the Google Groups > "Algorithm Geeks" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/algogeeks?hl=en. > -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en.
