473,756 Members | 7,293 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

C programming Newbee

Hi ALL,

I am new to C and programming . I need suggestions for the IDE to be
used as a begginer and should I start on Windows or Linux ??

I am also looking for resources for C programming on Internet with
examples on each concept.

I appreciate if any one can help me in this regard.

Kanthi Kiran.

Nov 14 '05
26 2259
no*@given.out scribbled the following:
(note: Don't confuse C with C++ ... C++ is a superset of C that uses more
complex (read: "confusing" ) programming concepts; something you probably
shouldn't tackle until you are comfortable in C first.)


Sorry, but C++ was never a superset of C. They are two separate
languages sharing a common, quite large, subset. But there are some C
features that don't work in C++.

--
/-- Joona Palaste (pa*****@cc.hel sinki.fi) ------------- Finland --------\
\-------------------------------------------------------- rules! --------/
"Roses are red, violets are blue, I'm a schitzophrenic and so am I."
- Bob Wiley
Nov 14 '05 #11
"Kanthi Kiran Narisetti" <Te********@gma il.com> wrote

I am new to C and programming . I need suggestions for the IDE to be
used as a begginer and should I start on Windows or Linux ??
You won't normally have a choice which OS to program under. If the company
decides that the target market is Windows users, then its no use saying that
you prefer Linux. So you've got to be prepared to use whatever you have.

Having said that, as a total newbie you will be writing command-line
programs and it doesn't really matter what you run under. However fairly
soon most people want a bit of graphical output. This isn't easy, since both
Windows and X-Windows are pretty unfriendly.
A lot of people want the functions
Window * openwindow(int width, int height)
closewindow(Win dow *win)
drawpixel(Windo w *win, int x, int y, unsigned char r, unsigned char g,
unsigned char b)

and pretty much just that. However implementing these functions on either
Windows or Linux is a pain, for various reasons.

Nov 14 '05 #12

"Erik de Castro Lopo" <no****@mega-nerd.com> wrote

If you eventually want to switch to Perl, why learn C first?
Quite honestly, it doesn't make all that much sense to learn
C as a first programming language.

I disagree here. It's a bit like saying "you want to be a doctor, so why
bother with physics, maths, chemistry and biology first?".

C is a low-level language, and Perl interpreters, for instance, are written
in C. So if you want to understand your tools it's a good idea to start with
a little assembler, then go onto C, and finally try higher-level languages,
which admittedly are often better than C for specific purposes.
Nov 14 '05 #13
Malcolm wrote:
"Erik de Castro Lopo" <no****@mega-nerd.com> wrote

If you eventually want to switch to Perl, why learn C first?
Quite honestly, it doesn't make all that much sense to learn
C as a first programming language.
I disagree here. It's a bit like saying "you want to be a doctor, so

why bother with physics, maths, chemistry and biology first?".
Being fluent in Perl and the Unix environment is akin to being an EMT
(emergency medical technician), but with no knowledge of math or
physics.

Like it or not, you don't want a mathematician, physicist, chemist, or
biologist when you're having a heart attack. You want an EMT. Someone
who can get the job done.

For the job of Unix system administration, knowledge of Perl and Unix
tools are akin to being an EMT. If you want to become a brain surgeon
(kernel / tools hacking), learn C. But you can learn brain surgery
later. And also note that being a brain surgeon without knowing how to
be an EMT sounds silly, now doesn't it?

C is a low-level language, and Perl interpreters, for instance, are written in C. So if you want to understand your tools
<snip>

If you want to understand your tools, then work at trying to understand
your tools. C can help you understand the implementation details of
your tools, but implementation details change more often than the tools
themselves.

it's a good idea to start with
a little assembler, then go onto C, and finally try higher-level languages, which admittedly are often better than C for specific purposes.


A programmer with several notches in his belt can pick up an assembly
language book and understand it. Give the same book to a green
programmer and you have more questions than answers. For most people,
assembly is not necessary. For many people, C is not necessary.
Mark F. Haigh

Nov 14 '05 #14

Malcolm wrote:
"Erik de Castro Lopo" <no****@mega-nerd.com> wrote

If you eventually want to switch to Perl, why learn C first?
Quite honestly, it doesn't make all that much sense to learn
C as a first programming language.
I disagree here. It's a bit like saying "you want to be a doctor, so

why bother with physics, maths, chemistry and biology first?".

C is a low-level language, and Perl interpreters, for instance, are written in C. So if you want to understand your tools it's a good idea to start with a little assembler, then go onto C, and finally try higher-level languages, which admittedly are often better than C for specific purposes.


Hi Eric & Malcom,

Can you clarify me as Systems Administrator(L inux & WIndows) which
would be the best choice for begginers programming language C or Perl
or Python . First I want to learn the concepts of programming than
learning a specific language, then I would prefer working on
specialisation or Perfection in Higher Languages.

Thank You.
Kanthi

Nov 14 '05 #15
Malcolm wrote:
"Kanthi Kiran Narisetti" <Te********@gma il.com> wrote
I am new to C and programming . I need suggestions for the IDE to be
used as a begginer and should I start on Windows or Linux ??


You won't normally have a choice which OS to program under. If the company
decides that the target market is Windows users, then its no use saying that
you prefer Linux. So you've got to be prepared to use whatever you have.

Having said that, as a total newbie you will be writing command-line
programs and it doesn't really matter what you run under. However fairly
soon most people want a bit of graphical output. This isn't easy, since both
Windows and X-Windows are pretty unfriendly.
A lot of people want the functions
Window * openwindow(int width, int height)
closewindow(Win dow *win)
drawpixel(Windo w *win, int x, int y, unsigned char r, unsigned char g,
unsigned char b)

and pretty much just that. However implementing these functions on either
Windows or Linux is a pain, for various reasons.


Yeah, makes one miss the good old Amiga :-)
Cheers
Michael
--
E-Mail: Mine is an /at/ gmx /dot/ de address.
Nov 14 '05 #16
Kanthi Kiran Narisetti wrote:

Can you clarify me as Systems Administrator(L inux & WIndows) which
would be the best choice for begginers programming language C or Perl
or Python . First I want to learn the concepts of programming than
learning a specific language, then I would prefer working on
specialisation or Perfection in Higher Languages.


The thing is that programming is a craft (even though you can make
an art or science of it but that's the same with every craft).
Learning a craft needs much and regular exercise.
If you learn with a programming language you can use in your daily
work and if you actually use it as soon as you can then you have
a better chance of getting the necessary exercise than if you only
play around a couple of hours per week far from real applications.

That said and even though I know that many people think differently,
I can recommend C as a first language. If you value conceptual
clarity, then it is certainly in some sense better for you than
perl where people without previous experiences in other languages
are somewhat challenged to find a clean and consistent programming
style. I have never had a real look at Python but have heard that
it is in this respect better than perl, so it may well be a good
choice as a starting language.
perl and Python both certainly enable you to get things done in your
job earlier, so that you get motivated earlier by some sort of
"return of investment".
Before the perl lovers beat me up as perl ranks last as a good
beginners' language in this comparison: In perl, you can pick up
many bad habits and get away with it. It is hard to unlearn these
habits later. C is much less forgiving which is IMO a good thing.
Nonetheless, if I want to Get Things Done, perl is often my first
choice.

As for learning C: I recommend the K&R2 book and, as soon as you
feel confident to tackle real world problems (after some months),
"C Unleashed".
After that proceed with whatever tutorials and books you want to
or have to read.
Cheers
Michael
--
E-Mail: Mine is an /at/ gmx /dot/ de address.
Nov 14 '05 #17
Kanthi Kiran Narisetti wrote:

<snip>
Can you clarify me as Systems Administrator(L inux & WIndows) which
would be the best choice for begginers programming language C or Perl
or Python . First I want to learn the concepts of programming than
learning a specific language, then I would prefer working on
specialisation or Perfection in Higher Languages.


[OT]

If you were a CS student, I'd say learn Python. But since you want to
be a Unix sysadmin, learn Perl. Perl's syntax and heritage is very
Unixy, very loose, integrates well with the most popular web server on
Earth, and directly inherits from C, sh, and awk. Python is stricter,
more of an OOP breed, and more isolated, linguistically speaking.

Back on topic: it doesn't matter. Pick Perl or Python. C is probably
not what you want. Again, feel free to ignore my advice and learn C
anyways, it's a great language and my personal favorite. But do
understand that as a newbie, it's probably going to take you at least
several painful years before you get up to speed.
Mark F. Haigh
mf*****@sbcglob al.net

Nov 14 '05 #18
Mark F. Haigh wrote:
Kanthi Kiran Narisetti wrote:

<snip>
Can you clarify me as Systems Administrator(L inux & WIndows) which
would be the best choice for begginers programming language C or Perl
or Python . First I want to learn the concepts of programming than
learning a specific language, then I would prefer working on
specialisatio n or Perfection in Higher Languages.

[OT]

If you were a CS student, I'd say learn Python. But since you want to
be a Unix sysadmin, learn Perl. Perl's syntax and heritage is very
Unixy, very loose, integrates well with the most popular web server on
Earth, and directly inherits from C, sh, and awk. Python is stricter,
more of an OOP breed, and more isolated, linguistically speaking.

Back on topic: it doesn't matter. Pick Perl or Python. C is probably
not what you want. Again, feel free to ignore my advice and learn C
anyways, it's a great language and my personal favorite. But do
understand that as a newbie, it's probably going to take you at least
several painful years before you get up to speed.


Good analysis, even though I am biased much more towards C as a first
language -- but I guess that is no crime around here... :-)

Cheers
Michael
--
E-Mail: Mine is an /at/ gmx /dot/ de address.
Nov 14 '05 #19
Michael Mair wrote:

<large snip>
Good analysis, even though I am biased much more towards C as a first
language -- but I guess that is no crime around here... :-)


I'd be willing to bet that most people claiming C was their first
language were programming *something* (A BASIC variant, batch files, TI
calculators, shell scripts, spreadsheets, whatever) beforehand. To
people like that, those "don't count". On the contrary, I maintain
that they do count. Heavily.

If a person can be dissuaded from learning C, the person probably
shouldn't be learning it anyways. On the other hand, if a person has a
burning need to learn C and it's their first language, then I certainly
sympathize and try to help when I can.
Mark F. Haigh
mf*****@sbcglob al.net

Nov 14 '05 #20

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
1928
by: Newbee | last post by:
Hi ! Let's say that this is the folder on the server: /web/firstDir/secondDir/images/image.gif where i have stored my pictures. I have tryed with apsolute and relative paths but i can't display images.... If i right click on the image the whole path is displayed on this way: http://www.test.com/Dir1/Dir2/Dir3/web/firstDir/secondDir/images/image.gif Should i define global variables(?) or how to solve this....
2
1661
by: Newbee Adam | last post by:
some said that .NET app can run on any program where rutime exists. What is "runtime" in this sense? will I have to install runtime or .net framework or .NET support on an xp machine for a .NET app to work? keep in mind I am a newbee :-) !! thanks --
3
1316
by: alpha | last post by:
Hello, i was hoping someone in this group can give me a pointer in the right direction. I have no knowledge whatsoever about programming but am keen to learn. I want to learn a language which i can perhaps earn a few pennys with in my spare time. I am not sure if the latest languages require knowledge of the older languages?.....can anyone give me a good starting reference?.....i of course want to learn the latest language/s so that i...
4
1781
by: PerryC | last post by:
All, 1. Do the following codes seem ok? 2. If so, then how do I pull the value of YOE1 and YOE2 into my report? (to do some further calculations) ************************************************* Private Sub GroupHeader0_Format(Cancel As Integer, FormatCount As Integer) Dim YOE1 As Double
2
1874
by: Martin Hvidberg | last post by:
Dear list I have found a declaration like this: #include <stdio.h> #include <stdlib.h> #include <string.h> #include <time.h> #include <math.h> #include "ectemp.h"
9
341
by: EMW | last post by:
I have created a page in aspx and after a click on a button, a new page should open. How is this possible? I tried it doing it like in vb.NET with opening a new form, but it doesn't work. rg, Eric
0
9303
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9894
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9679
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9676
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8542
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7078
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6390
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5156
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
2508
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.