By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
445,655 Members | 962 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 445,655 IT Pros & Developers. It's quick & easy.

What kind of problems is c best at solving?

P: n/a
nib
What kind of problems is c best at solving?
Nov 14 '05 #1
Share this Question
Share on Google+
12 Replies


P: n/a

"nib" <bi*@d.net> wrote in message

What kind of problems is c best at solving?

Any computer program is best if it solves a well-defined problem, and is
short enough for a single person to understand it at once.

C should be your langauge of choice if it is important that the program be
understood by a large number of people (simply because C is so widely
understood). It is also the language to choose if execution speed is
extremely important, because C compilers are very efficient.

If execution speed is paramount you should use assembly language, if it is
important that the language be easy to implement (ie build an
interpreter/compiler for) you should use BASIC, if the project is very
complex then arguably you should use C++, if the problem is non-numerical in
nature SNOBOL, for pattern matching, or COBOL, for business programming, are
good choices.

C is a very general-purpose language that should be the default if nothing
else is indicated.
Nov 14 '05 #2

P: n/a
nib wrote:
What kind of problems is c best at solving?


The kind that have solutions.

--
Richard Heathfield : bi****@eton.powernet.co.uk
"Usenet is a strange place." - Dennis M Ritchie, 29 July 1999.
C FAQ: http://www.eskimo.com/~scs/C-faq/top.html
K&R answers, C books, etc: http://users.powernet.co.uk/eton
Nov 14 '05 #3

P: n/a
On Mon, 29 Dec 2003 19:25:32 GMT, nib <bi*@d.net> wrote:

What kind of problems is c best at solving?


Those that can be solved by a computer.
--
#include <standard.disclaimer>
_
Kevin D Quitt USA 91387-4454 96.37% of all statistics are made up
Per the FCA, this address may not be added to any commercial mail list
Nov 14 '05 #4

P: n/a
nib writes:
What kind of problems is c best at solving?


Here is a list of things where C++ has been alleged to be used with some
degree of success.

http://www.research.att.com/~bs/applications.html
Nov 14 '05 #5

P: n/a
[Sorry I'm using Malcolm's post as I can't see the OP's post yet]
"nib" <bi*@d.net> wrote in message

What kind of problems is c best at solving?


Anything that can be described by an algorithm. Preferably a procedural
algorithm, though it's not uncommon to use C in typically OO or other
non-procedural context.

Peter
Nov 14 '05 #6

P: n/a
osmium wrote:
nib writes:
What kind of problems is c best at solving?


Here is a list of things where C++ has been alleged to be used
with some degree of success.


How is that relevant to his question?

Nov 14 '05 #7

P: n/a
Peter Pichler writes:
What kind of problems is c best at solving?


Anything that can be described by an algorithm. Preferably a procedural
algorithm, though it's not uncommon to use C in typically OO or other
non-procedural context.


If C is best at solving anything that can be described by an algorithm then
it is the best language there is. A highly dubious assertion.
Nov 14 '05 #8

P: n/a
"osmium" <r1********@comcast.net> wrote in message
news:bs***********@ID-179017.news.uni-berlin.de...
If C is best at solving anything that can be described by an algorithm then it is the best language there is.
Of course it is! After my native language, that is ;-)
A highly dubious assertion.


Why? ;-)
Nov 14 '05 #9

P: n/a
osmium wrote:
nib writes:
What kind of problems is c best at solving?


Here is a list of things where C++ has been alleged to be used with some
degree of success.


Methinks you forgot which newsgroup you're in.

<snip!>

--
Richard Heathfield : bi****@eton.powernet.co.uk
"Usenet is a strange place." - Dennis M Ritchie, 29 July 1999.
C FAQ: http://www.eskimo.com/~scs/C-faq/top.html
K&R answers, C books, etc: http://users.powernet.co.uk/eton
Nov 14 '05 #10

P: n/a
On Mon, 29 Dec 2003, nib wrote:
What kind of problems is c best at solving?


C is a programming language, not a general problem solver.

Tak-Shing

Nov 14 '05 #11

P: n/a
nib <bi*@d.net> spoke thus:
What kind of problems is c best at solving?


I've heard it can solve the halting problem.

--
Christopher Benson-Manica | I *should* know what I'm talking about - if I
ataru(at)cyberspace.org | don't, I need to know. Flames welcome.
Nov 14 '05 #12

P: n/a
Christopher Benson-Manica wrote:
nib <bi*@d.net> spoke thus:
What kind of problems is c best at solving?


I've heard it can solve the halting problem.


Oh, stop that!

--
Richard Heathfield :-) bi****@eton.powernet.co.uk
"Usenet is a strange place." - Dennis M Ritchie, 29 July 1999.
C FAQ: http://www.eskimo.com/~scs/C-faq/top.html
K&R answers, C books, etc: http://users.powernet.co.uk/eton
Nov 14 '05 #13

This discussion thread is closed

Replies have been disabled for this discussion.