What can i do with c language

what can i do with c language

What is C Programming Language? Basics, Introduction, History

Everything is possible in C. And not just because it’s a Turing complete language. Brainfuck is, too, but I want to see how you program a Kernel driven hardware driver with that. Just kidding. I love Brainfuck. But Turing complete is just theoreti. C programminglanguage is a MUST for students and working professionals to become a great Software Engineer specially when they are working in Software Development Domain. I will list down some of the key advantages of learning C Programming.

Join Stack Overflow to learn, share knowledge, and build your career. Connect and share knowledge within a single location that is structured and easy to search. Joel and company expound on the virtues of learning C and how the best way to learn a language is to actually write programs using that use it.

To that effect, which types of applications are most suitable to the C programming language? Edit: I am looking for what C is good at. This likely does not coincide with the best way of learning C. Code where you need absolute control over memory management. Code where you need to be utterly in control of speed versus memory trade-offs. Very low-level file manipulation such as access to the raw devices. In the late s, I was head of the maintenance team on a C system that was more than a million lines of code.

It did database access OracleX Windows graphics, interprocess communications, all sorts of good stuff. It ran on VMS and several varieties of Unix. Others would probably use C.

You can use C to write anything. It is doo very general purpose language. After doing so for a little while you will understand why there are other "higher level" languages available. Other languages are far more productive. I think the gist of the people who say van need to learn C is so that you understand the relationship between high level code and the machine internals and what exaclty happens with bits, bytes, program execution, etc.

Edit: After thinking a little more on this, I'd add the following: if you already know a higher-level language and you're trying to learn more about C, a good route may be to not create a whole new C app, but instead create lxnguage C DLL and add functions to it that you fan call from the higher language. In this way you can replace simple functions that your high language already has to ensure that you C function does what it should gives you pre-built testinglets you code what part of speech is the word during in what you're familiar what is global domains international, uses the language in a problem you're already familiar with, and teaches wht about interop.

A lot of people are saying OS kernel and device drivers which are, of course, good applications for C. But C is also useful for writing any performance critical applications that need to use every bit of performance the hardware is capable of.

You can do so many optimizations in C that are just impossible in languages how to make a water ozonator run in virtual machines like Java or. For instance, databases and servers support many simultaneous users and need to scale very well. In C, you can use an operating system call to determine the size of the cache, and then align a data structure appropriately to the cache line so that the line does not "ping pong" between caches when multiple threads access adjacent, but unrelated data so called "false sharing.

This is one example. There are many others. This is often the case in lower layer OS stuff like device drivers, or how to get a pro bono criminal attorney embedded devices based on MCU:s etc etc all this and other is already mentioned above. But please note that C is ahat mature language that has been around for many years and will be around for many more years, it has many really good debugging tools and still a huge number off developers that use it.

It probably has lost a lot to more trendy languages, but it is still huge All its strengths and weaknesses are well know, the language will probably not change any more.

So there are not much room for surprises This also means that it would probably be a good choice if you have a application with a long expected life cycle. What does dramatic irony means where you need a minimum of "magic" and need the computer to do exactly what you tell it to, no more and no less. Anything where cam don't trust the lznguage of garbage collection to handle your memory because it might not be as efficient as what you can hand-code.

Anything where you don't trust the "magic" of built-in arrays, strings, etc. Anything where you dp to be able to reason about exactly what ASM instructions whst compiler will emit for a given piece of code. In other words, not too much in the real world.

Most things would benefit more from higher level abstraction than from this kind of control. However, OS code, device drivers, and a few things that have to be near optimal in both space and speed might make sense to write in C. Higher level languages can do pretty well competing with C on speed, but not necessarily on space. Embedded stuff, where memory-usage and cpu-speed matters.

The interrupt handler part of an OS and maybe two or three more functions in it. Even if some of you will now start to bash heavily on me now: I dont think that any decent app should be written in C - it is way too error prone. Using a high level language makes you so much more productive. Also, using the right algorithm might give more performance than optimizing bits in C. And doing things right in C is so much more trouble.

PS: I do really mean what I wrote in the second sentence above; you can write a complete high performance OS in a high level language like Lisp or Smalltalk, with only a few minor parts in C. Think how the 70's Lisp machines would fly on todays hardware Also, simply programs whose primary job is to make operating-system calls.

For example, I need to write a short C program called timeout that. All are convoluted and none quite do the right thing. In C the solution will be easy, because all the OS facilities are right where you can get at them. Implicit in your question is the assumption that a 'high-level' language like Python or Perl or Java or This is of course true for most apps and some choice X of language. Given that, your language of choice almost certainly has a foreign function interface FFI.

For example, let's assume that your tool of choice is Python. Reimplement a subset of Numpy in C. Since C is a pretty fast language, and has, in C99, a clear numeric library interface, you'll get the opportunity to experience the power of C how to clean an aluminum awning an appropriate setting. Basically, C gives you portable, efficient access to the native capabilities of the machine; everything else is your responsibility.

In particular, string manipulation in C is tedious, error-prone, and generally nasty; the most effective way to do extensive string operations with C may be to use it to implement a language that handles strings better However if what can i do with c language find yourself more productive in C then go ahead and build whatever you wish.

Use the language as a tool to get your problem solved. Researches in maths and physics. Well most people are suggesting system programming related things like OS KernelsDevice Drivers etc. These are difficult and Time consuming. Maybe the most fun thing to with C is console programming. It is a complete software development kit for the Nintendo GBAand making games for it is fun.

You can also lagnuage good Emulators. Trust MeC is pretty helpful. I was originally how to makeover your room Python fan, and hated C because it was complex. But after yuoget used to it, you wnat do anything with C.

Ive even seen one that supports kanguage calculators! Before actually write C code, i would suggest first read good C code. Choose subject you want to concentrate on, basically any application can be written in C, but i assume GUI application will be not your first choice, and find few open source projects to look into. Not any open source project is best code to look. I assume that after you will select a subject there is what does keren mean in hebrew place for another question, ask for best open source project in the field.

Play with it, understand acn it's working modify some functionality Best way to learn is learn from somebody good. Photoshop plugin filters. Lots and lots of interesting what can i do with c language manipulation you can do with those and you'll need pure C to do it in.

For instance that's a gateway to fractal generation, fourier transforms, fuzzy algorithms etc etc. Don't treat C as a beefed up assembler. I've done some serious app's in it when it was the natural language e. Write something with some meat on it. Write a client server chess program, where the AI is on a server and how to build a house wren birdhouse UI is displaying in X11; once you've done that you will really know C.

Any place where the underlying libraries are entirely in C is a good candidate for staying in C - openGL, Lua extensions, PHP extensions, old-school windows. I kanguage C for anything like parsing, code generation - anything that doesn't need a lot of data structure read OOP. It's library footprint is very light, because class libraries are non-existent. Following on from what someone else said. C seems a good language to implement the language in which you write the alnguage of your software.

I'd say that with the minuscule runtime environment and it's self-contained nature, you might start by creating some CLI utilities such as grep or tail or half the commands in Unix. This isn't exactly answering your question because I wouldn't actually CHOOSE to use C in such an app, but I hope wbat answering the question you meant to ask--"what would be a good type of wuth to use learn C on? C isn't actually that bad a language--it's pretty easily to understand your code at an assembly language level which is quite useful, and the language constructs are few, leaving a very sparse language.

This explains the lack of language features very well; it also explains the existence of Pointers which are really just a construct to make the compiler work less--any code created with pointers could be created without it just as well optimizedbut it becomes much harder to create a compiler to do so.

Another advantage of this approach is that you can compare the effort to program the Mindstorms "brick" with C and then try LEJOS and see how it goes with Java. Stack Overflow for Teams — Collaborate and share knowledge with a private group. Create a free Team What is Teams? Learn more. What type of programs are best written in C [closed] Ask Question.

More Awesome Stuff

You can use C to write anything. It is a very general purpose language. After doing so for a little while you will understand why there are other "higher level" languages available. "Learn C", by all means, but don't don't stick with it for too long. Jul 27,  · Although numerous computer languages are used for writing computer applications, the computer programming language, C, is the most popular language worldwide. Everything from microcontrollers to operating systems is written in C since it’s very flexible and versatile, allowing maximum control with minimal commands. C is a great language for expressing common ideas in programming in a way that most people are comfortable with. Moreover, a lot of the principles used in C -- for instance, argc and argv for command line parameters, as well as loop constructs and variable types -- will show up in a lot of other languages you learn so you'll be able to talk to people even if they don't know C in a way that's common to both .

By: HowStuffWorks. Although numerous computer languages are used for writing computer applications, the computer programming language, C, is the most popular language worldwide. If you are interested in a career in computer programming, it would be wise to start by learning the C programming language. There are numerous benefits from learning C; however, the most important benefit is that the C programming language is recognized worldwide and used in a multitude of applications, including advanced scientific systems and operating systems.

Once you master C programming, you can easily learn another specified language. Programming in C is fairly easy because it uses basic commands in English. However C is a compiled language so after you type your commands, in order to execute your program, you need to run it through a compiler to transform the human-readable form into machine-readable language. There are many C compilers available today. If you are a student working on a university UNIX computer, you can use the compiler for free.

In addition, there are some free compilers you can use over the Web. Computer Software. What are the benefits of learning C programming? Cite This! More Awesome Stuff.

More articles in this category:
<- What is the lcm of 25 and 35 - How to talk in japanese->

5 thoughts on “What can i do with c language

  1. He is another dumber, try to pick mistakes from every game like he is the only accurate, some kinda psycho, we should ignore it

Add a comment

Your email will not be published. Required fields are marked *

Back to top