LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   difference between shell and c programing (https://www.linuxquestions.org/questions/linux-newbie-8/difference-between-shell-and-c-programing-892720/)

suddat 07-20-2011 08:05 AM

difference between shell and c programing
 
please help with this!!!

Snark1994 07-20-2011 08:07 AM

You will have to be far, far, far, far more specific.

Other than the fact that they've got completely different syntaxes, you need to compile a c programme into something that can be run by itself, while a shell script is interpreted by another programme (the shell).

David the H. 07-20-2011 09:08 AM

Could be a homework problem too.

You won't learn anything by being spoon-fed the answers, so do your own research first. Then if you any questions on specific points, you can come back and we'll help you to understand them.

DJ Shaji 07-20-2011 10:35 AM

A shell script is a set of commands that are run in sequence by a shell; a program in any language is a set of instructions that are run directly by the machine (?) when compiled, except for interpreted languages, of course. Ask the mighty Google for more.

MTK358 07-20-2011 03:40 PM

Quote:

Originally Posted by suddat (Post 4420073)
please help with this!!!

Aside from the fact that they are both programming languages, they have almost nothing at all in common. C is translated into raw CPU instructions, while a shell script is basically a set of commands to run in sequence.

http://en.wikipedia.org/wiki/C_%28pr...ng_language%29

http://en.wikipedia.org/wiki/Shell_script


All times are GMT -5. The time now is 09:46 PM.