1.

Solve : How to start C programming??

Answer»

After using windows for to make batch files for a while, i decided to upgrade. I now have Ubuntu and am going to learn C programming. How do i start? do i need a program to write the SCRIPTS in, like eclipse for Java or what?
Thanks
PottsieQuote

How do i start?
Open the terminal and type gcc to see if the compiler is installed.
If so, you can proceed to write a program using a text editor and save it as program.c
Then you can use gcc to compile it from the terminal.
If not, you can install it from the package manager.

Quote
do i need a program to write the scripts in, like eclipse for Java or what?
I am not very familier with what is the best IDE.kdevelop is a good IDE for C and C++, it supports other languages too I think.

sudo apt-get install kdevelop at a terminal to install; or use the package manager. For STARTING c programing you should know about the c language keywords, header files, data types. First of all you should start simple program like print hello.

#include < stdio.h>

void main()
{
printf("\nHello World\n");
}
Programming in C is almost programming in assembly.
Learn C++. It is a 'middle' language.It nis much easier to get started.
Unless you are the academic type, I would not recommend SPENDING much time learning C or other low-level-languages.
Have you studied any high-level languages?
If not, why not?
Most work being done today is top-down development.Quote from: Geek-9pm on December 20, 2010, 11:31:54 AM
Programming in C is almost programming in assembly.
Learn C++. It is a 'middle' language.It nis much easier to get started.

um... no it's not. C++ is a superset of C. Therefore by definition it will be harder to learn. It's sort of like saying "don't bother learning basic arithmetic, you should start with calculus"

Quote from: BC_Programmer on December 20, 2010, 12:19:25 PM
um... no it's not. C++ is a superset of C. Therefore by definition it will be harder to learn. It's sort of like saying "don't bother learning basic arithmetic, you should start with calculus"
Yes, I failed arithmetic. And later I failed Algebra.
Set me back so I did not get to take calculus.
Should have skipped arithmetic.Actually, I would say that C and C++ are agreeably close in difficulty to learn. But, for beginners - C is essentially easier to dive in to than C++. As for experienced learners in the programming field, C++ should not be too aggressive.

~DMJ If you are on windows, Microsoft Visual C++ Express Edition is good compiler.


C++ includes the stuff you can do in C. Anyway, cplusplus.com has a great tutorial so you may want to start here!

I agree. cplusplus.com is pretty good. I am on a couple of other sites that I learned on.Quote from: 2x3i5x on December 22, 2010, 12:27:55 PM
C++ includes the stuff ... cplusplus.com has a great tutorial so you may want to start here!
Way to go! Greet link! And it is FREE!I'm new here but I wanted to give my 0.02 worth...

It's generally accepted wisdom that C and C++ are close enough that you may as well start with C++. The major difference is the object model and it's better to get started with objects sooner than later.

I like GEANY for C/C++. It runs on Win and *Nix and it can run C/C++ directly (as long as you have a compiler available).I recommend w3schoos.com is ALSO good !!Quote from: jhonas on January 20, 2011, 12:14:42 AM
I recommend w3schoos.com is also good !!

you are recommending a non-functional website


Discussion

No Comment Found