Thread: C questions

  1. #1
    Registered User
    Join Date
    May 2011
    Posts
    21

    C questions

    Is still worth it learning c nowadays?
    i know c is used for hackin and linux n u cannot be a hacker without c. But is still language still used nowadays? I wanna learn it a few years from now. Will the language still be usefull in that time? How long do u think the language will still be useful? What can u do with the language? Can i still use it 10, 20 years from now? Do not mention other languages. Please only answer these questions i've got about c. Can i build beautiful, modern, graphic programs, web apps, mobile aplications, 3d games and anythin i want with c?
    So is it not worth it learning c? What can i do with c?
    2

  2. #2
    Third Eye Babkockdood's Avatar
    Join Date
    Apr 2010
    Posts
    352
    C is my favorite language to work with. It is very useful for writing quick-and-dirty command-line programs, which are still incredibly useful and handy nowadays (at least to me they are). I think it's worth learning, and it's not impossible to write a program that uses GUI.
    Quote Originally Posted by The Jargon File
    Microsoft Windows - A thirty-two bit extension and graphical shell to a sixteen-bit patch to an eight-bit operating system originally coded for a four-bit microprocessor which was written by a two-bit company that can't stand one bit of competition.

  3. #3
    Banned
    Join Date
    Aug 2010
    Location
    Ontario Canada
    Posts
    9,547
    Quote Originally Posted by malvado View Post
    Is still worth it learning c nowadays?
    i know c is used for hackin and linux n u cannot be a hacker without c. But is still language still used nowadays? I wanna learn it a few years from now. Will the language still be usefull in that time? How long do u think the language will still be useful? What can u do with the language? Can i still use it 10, 20 years from now? Do not mention other languages. Please only answer these questions i've got about c. Can i build beautiful, modern, graphic programs, web apps, mobile aplications, 3d games and anythin i want with c?
    So is it not worth it learning c? What can i do with c?
    2
    My best guess is that it will out live SMS Speak... but probably not bad spelling and poor grammar.

    C is in heavy use, worldwide, every day. It's the lanugage of drivers, kernels and imbedded systems. That won't change any time soon.

  4. #4
    Banned
    Join Date
    Aug 2010
    Location
    Ontario Canada
    Posts
    9,547
    Quote Originally Posted by Babkockdood View Post
    C is my favorite language to work with. It is very useful for writing quick-and-dirty command-line programs, which are still incredibly useful and handy nowadays (at least to me they are). I think it's worth learning, and it's not impossible to write a program that uses GUI.
    (Shameless Plug time....) Remote Media 100% pure C...

  5. #5
    Registered User
    Join Date
    May 2011
    Posts
    21
    andropid is written in c right? I heard it is a dirty copy of linux and linux is written in c right? I ve never seen a ........in android n i live all the way in Netherlands, but Android is a mobile OS, right? My question is: outta nythin that exists out there which is done by a language, can it be pulled by c? I wanna be able to do anythin i want and even write Operating systems. Is it possible to do that with c? I wanna be able to make p2p programs, programs that speed up pc's and internet, webbrowsers and any program i want and probably improve every existing program, OS and website( dont ask me how). I wanna build amazing things, futuristic things, stuff you only c in movies and can only dream off. Name a few great modern programs written in c. Would u really recommend me to learn C if i still wanna be able to program in 10,20 years?

  6. #6
    Registered User claudiu's Avatar
    Join Date
    Feb 2010
    Location
    London, United Kingdom
    Posts
    2,094
    I think you first need to read and write in English and or Dutch correctly. Then perhaps, after 15-20 years of programming you may write something like an operating system, although my gut feeling is you will abandon the subject altogether when you realize that programming is very different from the fairy tales that are now floating in your head.
    1. Get rid of gets(). Never ever ever use it again. Replace it with fgets() and use that instead.
    2. Get rid of void main and replace it with int main(void) and return 0 at the end of the function.
    3. Get rid of conio.h and other antiquated DOS crap headers.
    4. Don't cast the return value of malloc, even if you always always always make sure that stdlib.h is included.

  7. #7
    Banned
    Join Date
    Aug 2010
    Location
    Ontario Canada
    Posts
    9,547
    Quote Originally Posted by malvado View Post
    andropid is written in c right? I heard it is a dirty copy of linux and linux is written in c right? I ve never seen a ........in android n i live all the way in Netherlands, but Android is a mobile OS, right? My question is: outta nythin that exists out there which is done by a language, can it be pulled by c? I wanna be able to do anythin i want and even write Operating systems. Is it possible to do that with c?
    Windows was written in C.
    Linux was written in C.
    BSD was written in C.
    Unix was written in C.

    So the answer is "yes".

  8. #8
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    28,413
    Quote Originally Posted by malvado
    Is still worth it learning c nowadays?
    In my opinion, yes.

    Quote Originally Posted by malvado
    But is still language still used nowadays?
    Yes.

    Quote Originally Posted by malvado
    I wanna learn it a few years from now. Will the language still be usefull in that time? How long do u think the language will still be useful?
    I'm not going to provide any numbers, but I will venture to say that C will remain useful in the next few years after you learn it a few years from now. Actually, why not start learning it now?

    Quote Originally Posted by malvado
    What can u do with the language?
    Read and write C programs
    C is a general purpose programming language.

    Quote Originally Posted by malvado
    Can i still use it 10, 20 years from now?
    If you are immortal, you can use C 20000 years from now. If you have a time machine and transport the right equipment with you, you can use C 20000 years in the past.

    Quote Originally Posted by malvado
    I wanna be able to do anythin i want and even write Operating systems. Is it possible to do that with c?
    Yes.

    But now that we have these questions out of the way...

    Quote Originally Posted by malvado
    Do not mention other languages. Please only answer these questions i've got about c. Can i build beautiful, modern, graphic programs, web apps, mobile aplications, 3d games and anythin i want with c?
    You come across as having a "I'm going to learn C, and this is the only programming language I'll ever use to solve any programming problem I face, for the rest of my life" attitude. Unfortunately, this mindset will cause you to be a mediocre programmer. You should open your horizons and use the right tool for the job. You should even learn tools that may not be of immediate use to you, but which can give you better insight into the tools, such as C, that are of immediate use to you.
    Quote Originally Posted by Bjarne Stroustrup (2000-10-14)
    I get maybe two dozen requests for help with some sort of programming or design problem every day. Most have more sense than to send me hundreds of lines of code. If they do, I ask them to find the smallest example that exhibits the problem and send me that. Mostly, they then find the error themselves. "Finding the smallest program that demonstrates the error" is a powerful debugging tool.
    Look up a C++ Reference and learn How To Ask Questions The Smart Way

  9. #9
    Registered User
    Join Date
    May 2011
    Posts
    21
    Quote Originally Posted by laserlight View Post
    In my opinion, yes.


    Yes.


    I'm not going to provide any numbers, but I will venture to say that C will remain useful in the next few years after you learn it a few years from now. Actually, why not start learning it now?


    Read and write C programs
    C is a general purpose programming language.


    If you are immortal, you can use C 20000 years from now. If you have a time machine and transport the right equipment with you, you can use C 20000 years in the past.


    Yes.

    But now that we have these questions out of the way...


    You come across as having a "I'm going to learn C, and this is the only programming language I'll ever use to solve any programming problem I face, for the rest of my life" attitude. Unfortunately, this mindset will cause you to be a mediocre programmer. You should open your horizons and use the right tool for the job. You should even learn tools that may not be of immediate use to you, but which can give you better insight into the tools, such as C, that are of immediate use to you.
    Do not mention other languages. Please only answer these questions i've got about c. Can i build beautiful, modern, graphic programs, web apps, mobile aplications, 3d games and anythin i want with c?
    U didn't answer this question, lol. Please be more specific.

  10. #10
    Registered User
    Join Date
    May 2011
    Posts
    21
    Quote Originally Posted by claudiu View Post
    I think you first need to read and write in English and or Dutch correctly. Then perhaps, after 15-20 years of programming you may write something like an operating system, although my gut feeling is you will abandon the subject altogether when you realize that programming is very different from the fairy tales that are now floating in your head.

    I wanna be able to do anythin i want and even write Operating systems. Is it possible to do that with c? I wanna be able to make p2p programs, programs that speed up pc's and internet, webbrowsers and any program i want and probably improve every existing program, OS and website( dont ask me how). I wanna build amazing things, futuristic things, stuff you only c in movies and can only dream off. Name a few great modern programs written in c. Would u really recommend me to learn C if i still wanna be able to program in 10,20 years?
    is this possible with C?
    Last edited by malvado; 05-15-2011 at 12:53 PM.

  11. #11
    Registered User claudiu's Avatar
    Join Date
    Feb 2010
    Location
    London, United Kingdom
    Posts
    2,094
    Quote Originally Posted by malvado View Post
    is this possible with C?
    Can I haz programming? No.

    EDIT: What I recommend is to drop this altogether unless you plan to make a career out of it. That takes years of study and work. If you want someone to sell this to you, as in convince you that it's a good thing to do, then already, this is not the thing for you. We have enough wannabes in this profession, like "social media experts" and other "it consultants" with formal training in human geography. So drop it. Please.
    Last edited by claudiu; 05-15-2011 at 12:56 PM.
    1. Get rid of gets(). Never ever ever use it again. Replace it with fgets() and use that instead.
    2. Get rid of void main and replace it with int main(void) and return 0 at the end of the function.
    3. Get rid of conio.h and other antiquated DOS crap headers.
    4. Don't cast the return value of malloc, even if you always always always make sure that stdlib.h is included.

  12. #12
    Banned
    Join Date
    Aug 2010
    Location
    Ontario Canada
    Posts
    9,547
    Quote Originally Posted by malvado View Post
    U didn't answer this question, lol. Please be more specific.
    Yes Lase did answer your question... She gave you the best of all possible answers...

    "Never put all your eggs in one basket"

    Yes C can do almost anything... Some things are very hard in C but easier in other lanugages and vica versa... Only a fool would bank his career on a single language.

    If you're just dabbling in programming as a sort of "full time hobby", as I do, it's no biggy... but I wouldn't last a week in a professional programming position. Having been in the position of hiring and managing service technicians and programmers... I would snap me up as a tech in a heartbeat but I'd never hire myself as a programmer.

  13. #13
    Registered User
    Join Date
    Mar 2011
    Posts
    1
    C will always be useful if you know how to use it. They are flaws in your questioning and your assumptions. Learn to program in any language and 95% of your questions will be answered.

  14. #14
    ---
    Join Date
    May 2004
    Posts
    1,379
    Quote Originally Posted by malvado View Post
    andropid is written in c right? I heard it is a dirty copy of linux and linux is written in c right? I ve never seen a ........in android n i live all the way in Netherlands, but Android is a mobile OS, right? My question is: outta nythin that exists out there which is done by a language, can it be pulled by c? I wanna be able to do anythin i want and even write Operating systems. Is it possible to do that with c? I wanna be able to make p2p programs, programs that speed up pc's and internet, webbrowsers and any program i want and probably improve every existing program, OS and website( dont ask me how). I wanna build amazing things, futuristic things, stuff you only c in movies and can only dream off. Name a few great modern programs written in c. Would u really recommend me to learn C if i still wanna be able to program in 10,20 years?
    Based on this post I would say the OP is just a troll

  15. #15
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    28,413
    Quote Originally Posted by malvado
    U didn't answer this question, lol. Please be more specific.
    Very well.

    Quote Originally Posted by malvado
    Can i build beautiful, modern, graphic programs, web apps, mobile aplications, 3d games and anythin i want with c?
    Since you obviously don't know C, the answer is that you cannot "build beautiful, modern, graphic programs, web apps, mobile aplications, 3d games and anythin (you) want with c". In fact, you cannot even write a "hello world" program in C.

    If you want to learn C, stop talking about what happens if you learn C. Just learn C. If you want to be a good programmer who will remain relevant in skills in time to come, in due course learn other programming languages to broaden your knowledge and skills.

    Quote Originally Posted by sand_man
    Based on this post I would say the OP is just a troll
    Possibly, but I find it hard to be certain considering the attitude of some people these days, as genuine as they may be.
    Quote Originally Posted by Bjarne Stroustrup (2000-10-14)
    I get maybe two dozen requests for help with some sort of programming or design problem every day. Most have more sense than to send me hundreds of lines of code. If they do, I ask them to find the smallest example that exhibits the problem and send me that. Mostly, they then find the error themselves. "Finding the smallest program that demonstrates the error" is a powerful debugging tool.
    Look up a C++ Reference and learn How To Ask Questions The Smart Way

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. questions....so many questions about random numbers....
    By face_master in forum C++ Programming
    Replies: 2
    Last Post: 07-30-2009, 08:47 AM
  2. few questions
    By BEN10 in forum C Programming
    Replies: 11
    Last Post: 07-06-2009, 07:47 AM
  3. Some questions about DSO's...
    By LinuxCoder in forum Linux Programming
    Replies: 2
    Last Post: 04-11-2006, 09:47 AM
  4. PM - questions
    By dbaryl in forum A Brief History of Cprogramming.com
    Replies: 0
    Last Post: 09-09-2002, 12:45 AM
  5. PHP Questions
    By Unregistered in forum A Brief History of Cprogramming.com
    Replies: 1
    Last Post: 06-07-2002, 11:51 AM