Forum     

Go Back   Digit Technology Discussion Forum > Software > Programming
Register FAQ Calendar Mark Forums Read

Programming The destination for developers - C, C++, Java, Python and the lot


Closed Thread
 
LinkBack Thread Tools Display Modes
Old 20-12-2007, 10:19 PM   #1 (permalink)
Alpha Geek
 
baccilus's Avatar
 
Join Date: Feb 2006
Location: Chandigarh
Posts: 948
Default Help me learn C language


I am a student of microbiology. For some reason, C language is included in our syllabus. I need your guidance regarding these things:

1. Which online/offline book to consult
2. How do I practice it in my linux box? I have gcc installed but I don't know how to bring it up or start working on it like sir was while demonstrating it on turbo c++ software on windows.

Please consider that I am a medical student and would also need to know about the basics like what's a compiler,what's a LLL, Hll, etc.

I think I should have posted in programming section. Sorry about that. Can someone move this please?

I also saw a post regarding alternative to turbo c but I still need answers to both my questions since I am a complete noob and I have different requirements.
__________________
Appreciate me now and avoid the rush!!
i5 2500K || 8GB DDRIII 1600 MHz RAM || Zotac GTX560Ti || Samsung 2233sw || Corsair GS600

Last edited by baccilus; 20-12-2007 at 10:19 PM. Reason: Automerged Doublepost
baccilus is offline  
Advertisements. Register and be a member of the community to get rid of them.
Advertisement

Old 21-12-2007, 12:04 AM   #2 (permalink)
Right Off the Assembly Line
 
cool_callis's Avatar
 
Join Date: Dec 2006
Posts: 24
Default Re: Help me learn C language

i will suggest u following book for beginning
1.c primer plus
2.c in a nutshell
both r really very good books .get hard copy of ny one which is available .
once u have mastered basics for perfection u can follow
1. c programming language by dennis ritchie (creator of c language)
the best c book but u will not understand this if u first read this book.
c in a nutshell book has given complete detail on compiling and debugging
cool_callis is offline  
Old 21-12-2007, 12:13 AM   #3 (permalink)
Commander in Chief
 
QwertyManiac's Avatar
 
Join Date: Jul 2005
Posts: 6,658
Default Re: Help me learn C language

To use GCC, open terminal and do this to compile your written C file:
Code:
gcc <filename_of_program>.c -o <somename_for_output_file>
And once compiled successfully by the above command (No o/p == Success), do this to run the program:
Code:
./<somename_for_output_file>
__________________
Harsh J
www.harshj.com
QwertyManiac is offline  
Old 21-12-2007, 12:31 AM   #4 (permalink)
Alpha Geek
 
baccilus's Avatar
 
Join Date: Feb 2006
Location: Chandigarh
Posts: 948
Default Re: Help me learn C language

Will these books have the kind of basics that I am gonna need. I need basic definitions and explanations too. How about Balaguru Sami or Nitin Upadhya's book? My friend has them so I won't have to buy them. Are they any good?
__________________
Appreciate me now and avoid the rush!!
i5 2500K || 8GB DDRIII 1600 MHz RAM || Zotac GTX560Ti || Samsung 2233sw || Corsair GS600
baccilus is offline  
Old 21-12-2007, 12:38 AM   #5 (permalink)
Right Off the Assembly Line
 
cool_callis's Avatar
 
Join Date: Dec 2006
Posts: 24
Default Re: Help me learn C language

if u need only basic knowledge then u can follow balaguruswamy or book by yashwant kanetkar (let us c)
as u need only basic knowledge i suggest that 'let us c ' by yashwant kanetkar will be the most suitable book for u . i has very simple language and suitable for noobs to programming and those who need only basic knowledge . get this book.it has simple language nd easier to understand than balaguruswamy book.
cool_callis is offline  
Old 21-12-2007, 08:56 PM   #6 (permalink)
Burning Bright
 
anantkhaitan's Avatar
 
Join Date: May 2006
Location: NIT, Bhopal
Posts: 266
Default Re: Help me learn C language

Quote:
Originally Posted by QwertyManiac
Code:
gcc <filename_of_program>.c -o <somename_for_output_file>
Better include -W for the warning(s):
Code:
gcc -W <filename_of_program>.c -o <somename_for_output_file>
__________________
..::Fedora ::.. Freedom + Infinity + Speech
Registered Linux User #447318

GNUger was here.... Grrr....

Maah! Blog
http://brightedges.blogspot.com/
anantkhaitan is offline  
Old 21-12-2007, 09:10 PM   #7 (permalink)
left this forum longback
 
praka123's Avatar
 
Join Date: Sep 2005
Location: -
Posts: 7,536
Default Re: Help me learn C language

@baccilus are u good in math I am not and i struggle with programming,still dont know anything even with C although i passed exams long back 9 yrs ago
__________________
left this forum long back.Admin Can Delete this Account and posts Permanantly.Thank You
Get GNU/Linux - http://getgnulinux.org
praka123 is offline  
Old 21-12-2007, 09:25 PM   #8 (permalink)
Google Bot
 
Pathik's Avatar
 
Join Date: Aug 2005
Posts: 9,772
Default Re: Help me learn C language

Quote:
Originally Posted by baccilus
Will these books have the kind of basics that I am gonna need. I need basic definitions and explanations too. How about Balaguru Sami or Nitin Upadhya's book? My friend has them so I won't have to buy them. Are they any good?
Try Kernighan & Ritchie.
Pathik is offline  
Old 21-12-2007, 09:30 PM   #9 (permalink)
die blizzard die! D3?
 
The_Devil_Himself's Avatar
 
Join Date: Aug 2007
Location: Event horizon
Posts: 2,361
Default Re: Help me learn C language

balagurusamy's and kanitkar's are good for nothing.
__________________
Stealing your women and horses since 1843.
The_Devil_Himself is offline  
Old 21-12-2007, 10:07 PM   #10 (permalink)
Apprentice
 
hayabusa_ryu's Avatar
 
Join Date: Nov 2007
Posts: 97
Talking Re: Help me learn C language

I suggest that u should go for C : The Complete Refrence published by Tata McGraw Hill and then go for C : How to program written by Deitel & Deitel published by Prentice Hall and lastly go for C The Programming Language by Ritchie and Kernigham. You can also try Yaswant Kanitkar's book
hayabusa_ryu is offline  
Old 21-12-2007, 10:11 PM   #11 (permalink)
Burning Bright
 
anantkhaitan's Avatar
 
Join Date: May 2006
Location: NIT, Bhopal
Posts: 266
Default Re: Help me learn C language

Programming in ANSI C, E Balagurusamy is quite good..
__________________
..::Fedora ::.. Freedom + Infinity + Speech
Registered Linux User #447318

GNUger was here.... Grrr....

Maah! Blog
http://brightedges.blogspot.com/
anantkhaitan is offline  
Old 21-12-2007, 10:44 PM   #12 (permalink)
Alpha Geek
 
baccilus's Avatar
 
Join Date: Feb 2006
Location: Chandigarh
Posts: 948
Default Re: Help me learn C language

@Praka: I am a medical student. I suck at maths.

I think I will give Balaguruswamy a try first since I won't have to buy it. If I don't understand it, I will go by Hayabusu's advice although I will just read one of them (Have to focus more on my majors, C is subsidiary)

By the way I have installed Anjuta. That's good right?

@Devil: Can you elaborate please.
__________________
Appreciate me now and avoid the rush!!
i5 2500K || 8GB DDRIII 1600 MHz RAM || Zotac GTX560Ti || Samsung 2233sw || Corsair GS600

Last edited by baccilus; 21-12-2007 at 10:51 PM.
baccilus is offline  
Old 21-12-2007, 10:48 PM   #13 (permalink)
Here Since 2003
 
Indyan's Avatar
 
Join Date: Oct 2007
Location: LOST
Posts: 524
Default Re: Help me learn C language

I would reccomend Balaguruswamy and Let us C to start with.
Let us C is very well written and is actually a fun read.
Indyan is offline  
Old 21-12-2007, 10:50 PM   #14 (permalink)
left this forum longback
 
praka123's Avatar
 
Join Date: Sep 2005
Location: -
Posts: 7,536
Default Re: Help me learn C language

@baccilus:yeah Anjuta IDE is very nice and easy
__________________
left this forum long back.Admin Can Delete this Account and posts Permanantly.Thank You
Get GNU/Linux - http://getgnulinux.org
praka123 is offline  
Old 21-12-2007, 10:54 PM   #15 (permalink)
die blizzard die! D3?
 
The_Devil_Himself's Avatar
 
Join Date: Aug 2007
Location: Event horizon
Posts: 2,361
Default Re: Help me learn C language

Quote:
Originally Posted by Indyan
I would reccomend Balaguruswamy and Let us C to start with.
Let us C is very well written and is actually a fun read.
please,please don't misguide!!it takes a lot of time to get over the 'kanetkar syndrome'.


@baccilus:I don't think you need any IDE for basic programming,just use a siple text editor and then use gcc to compile,as simple as that.

One humble request,get a good book instead of even trying balagurusamy,I have thsi book and it sucks! some good book will make learning c a pleasure like it should be.
__________________
Stealing your women and horses since 1843.
The_Devil_Himself is offline  
Old 21-12-2007, 10:58 PM   #16 (permalink)
left this forum longback
 
praka123's Avatar
 
Join Date: Sep 2005
Location: -
Posts: 7,536
Default Re: Help me learn C language

I bought long back C for Dummies.it is lieing here in my room.it follows instructs for turbo C which i dont use.but id have to say-it is very easy if u have time though.
__________________
left this forum long back.Admin Can Delete this Account and posts Permanantly.Thank You
Get GNU/Linux - http://getgnulinux.org
praka123 is offline  
Old 22-12-2007, 08:55 PM   #17 (permalink)
Alpha Geek
 
baccilus's Avatar
 
Join Date: Feb 2006
Location: Chandigarh
Posts: 948
Default Re: Help me learn C language

Devil; I think I will flip the pages a bit and see how he has tried to explain the things. Personally I too like books where author tries to make things simple, rather than throwing knowledge at you. Any book you think is nice and simple which manages to get the concept across?



I can also get "let us C" from Brit library I guess. Will see these and get back to you guys.



Thanks for the help guys.
__________________
Appreciate me now and avoid the rush!!
i5 2500K || 8GB DDRIII 1600 MHz RAM || Zotac GTX560Ti || Samsung 2233sw || Corsair GS600
baccilus is offline  
Old 22-12-2007, 09:07 PM   #18 (permalink)
GaurishSharma.com
 
gary4gar's Avatar
 
Join Date: May 2005
Location: Jaipur
Posts: 4,116
Default Re: Help me learn C language

get yourself a copy of K&R, it comes for 90 or 100 bucks
gary4gar is offline  
Old 23-12-2007, 01:10 PM   #19 (permalink)
In The Zone
 
damnthenet's Avatar
 
Join Date: Apr 2005
Location: Chennai
Posts: 224
Default Re: Help me learn C language

Balagurusamy ought to be enough for a addied paper
__________________
Sony Xperia Neo V - Review and Discussion Thread:
http://www.thinkdigit.com/forum/mobi...ml#post1520514
damnthenet is offline  
Old 23-12-2007, 03:00 PM   #20 (permalink)
The Smaller Bang
 
MetalheadGautham's Avatar
 
Join Date: Sep 2007
Location: Gautham City
Posts: 7,489
Default Re: Help me learn C language

I noticed that Dev C++ has a built in instruction set for C programming. My friend, who is in this forums, but has not yet posted, has learnt C exclusively through Dev C++'s built in help.
__________________
http://TheSmallerBang.wordpress.com
eMachines E725 - T4400 2.2GHz, 1GB, 160GB
Nokia 5130XM * T-Sonic 610 2GB
Nokia 2323C * Samsung Galaxy Y
Apple iPad 2 16GB WiFi
MetalheadGautham is offline  
Old 23-12-2007, 04:00 PM   #21 (permalink)
Wahahaha~!
 
Faun's Avatar
 
Join Date: Dec 2006
Location: Pune/there
Posts: 7,675
Default Re: Help me learn C language

Quote:
Originally Posted by hayabusa_ryu
C : How to program written by Deitel & Deitel published by Prentice Hall
ftw
__________________
Blog | Flickr | Battlelog
Spoiler:
Asus Z68 V-Pro|i5 2500k|TRUE Black|Ripjaws X|U2311H|N560GTX|D7000|XONAR STX|RE272|RE0|CC51|XE200PRO Walnut| TD II V2| Ultraphile|N5800

Mono
Faun is online now  
Old 23-12-2007, 04:13 PM   #22 (permalink)
The Lord of Death
 
Yamaraj's Avatar
 
Join Date: May 2005
Location: यमलोक
Posts: 253
Default Re: Help me learn C language

Anyone recommending Kanetkar books should be hanged and fed to vultures.

C Primer Plus is an excellent text. K&R is tough on beginners, and was originally meant for programmers not familiar with C. Stephen Kochan's Programming in C, 3rd edition is also quite good for starters. I also recommend A Book on C by Kelley and Pohl.
Yamaraj is offline  
Old 23-12-2007, 04:28 PM   #23 (permalink)
Wahahaha~!
 
Faun's Avatar
 
Join Date: Dec 2006
Location: Pune/there
Posts: 7,675
Default Re: Help me learn C language

Quote:
Originally Posted by Yamaraj
Anyone recommending Kanetkar books should be hanged and fed to vultures.

C Primer Plus is an excellent text. K&R is tough on beginners, and was originally meant for programmers not familiar with C. Stephen Kochan's Programming in C, 3rd edition is also quite good for starters. I also recommend A Book on C by Kelley and Pohl.
I never learned from Kanetkar,

K & R is for hardcore sys programming

Deitel and Deitel is a good option (includes a primer to C++ and JAVA).
__________________
Blog | Flickr | Battlelog
Spoiler:
Asus Z68 V-Pro|i5 2500k|TRUE Black|Ripjaws X|U2311H|N560GTX|D7000|XONAR STX|RE272|RE0|CC51|XE200PRO Walnut| TD II V2| Ultraphile|N5800

Mono
Faun is online now  
Old 23-12-2007, 05:53 PM   #24 (permalink)
The Smaller Bang
 
MetalheadGautham's Avatar
 
Join Date: Sep 2007
Location: Gautham City
Posts: 7,489
Default Re: Help me learn C language

there is a book on C programming by Dennis Ritchie. It is absolutely amazing, even for n00bs. He explains every concept, and gives lots of tips. His english is also scholary.

PS: for those who don't know, Dennis Ritchie invented C
__________________
http://TheSmallerBang.wordpress.com
eMachines E725 - T4400 2.2GHz, 1GB, 160GB
Nokia 5130XM * T-Sonic 610 2GB
Nokia 2323C * Samsung Galaxy Y
Apple iPad 2 16GB WiFi
MetalheadGautham is offline  
Old 23-12-2007, 06:34 PM   #25 (permalink)
left this forum longback
 
praka123's Avatar
 
Join Date: Sep 2005
Location: -
Posts: 7,536
Default Re: Help me learn C language

...and co-invented UNIX for which C Programming Language was made.
__________________
left this forum long back.Admin Can Delete this Account and posts Permanantly.Thank You
Get GNU/Linux - http://getgnulinux.org
praka123 is offline  
Old 23-12-2007, 07:42 PM   #26 (permalink)
GaurishSharma.com
 
gary4gar's Avatar
 
Join Date: May 2005
Location: Jaipur
Posts: 4,116
Default Re: Help me learn C language

but a word of caution K&R is book for those who already know some programming in any langage. n00bs will find difficult to understand.

the as the opening text of book is
"there is no other to learn to program, then to program itself, so lets get started"
Code:
#include<stdio.h>
int main()
{
printf("hello world \n");
return 0;
}
so the book is closer to *UNIX, so windows wienies may not understand some *UNIX related concepts, like the file system handling etc etc
gary4gar is offline  
Old 23-12-2007, 08:15 PM   #27 (permalink)
left this forum longback
 
praka123's Avatar
 
Join Date: Sep 2005
Location: -
Posts: 7,536
Smile Re: Help me learn C language

books are not responsible atleast 20%!there is no change if u collect these books!make sure u have a good lecturer,guide.with pupils poor in Maths,they sure need a lecturer for C programming etc.no self studying.
best way to learn programming is to make sure whether ur nice in Math or not.i ur not good in math(<60%) then Programming can be left for those geeks and you can try some good with politics or arts etc
ofcourse no offense meant to any!JFYI
^...@gary:waiting for ur fast track to C programming
__________________
left this forum long back.Admin Can Delete this Account and posts Permanantly.Thank You
Get GNU/Linux - http://getgnulinux.org
praka123 is offline  
Old 24-12-2007, 12:20 PM   #28 (permalink)
Alpha Geek
 
adi007's Avatar
 
Join Date: Sep 2007
Location: hassan
Posts: 717
Default Re: Help me learn C language

Quote:
Originally Posted by Yamaraj
Anyone recommending Kanetkar books should be hanged and fed to vultures.
^^please tell why??
though i have not learned C by it but i found it ok...

there are lots of downloadable e-books regarding programming languages at
www.freeprogrammingresources.com/books.html
but i personally feel that no e-book can replace the good old normal books..
__________________
doiteasily.com ►easy way(s) to do certain things
Tech Word of the day : ADSL
Aditech Blog ► There is something for everyone
Terminal Command of the day
regtweak.info ► Windows Registry hacks and tricks
adi007 is offline  
Old 24-12-2007, 12:45 PM   #29 (permalink)
GaurishSharma.com
 
gary4gar's Avatar
 
Join Date: May 2005
Location: Jaipur
Posts: 4,116
Default Re: Help me learn C language

Quote:
Originally Posted by wise man
All books by Yashwant Kanetkar including books like Let US C, Working with C, Data structure through C. The problem with his books is that, though they are easy to read, but they contain lots of factual errors. They do not address the fact that certain aspects of C is implementation dependent.
one word:AVOID THEM

Quote:
Originally Posted by praka123
^...@gary:waiting for ur fast track to C programming

oh didn't read this....lol i can't code anything properly apart from "Hello world" program
do you need to fast track to hello world

Last edited by gary4gar; 24-12-2007 at 12:47 PM. Reason: Automerged Doublepost
gary4gar is offline  
Old 24-12-2007, 04:07 PM   #30 (permalink)
The Lord of Death
 
Yamaraj's Avatar
 
Join Date: May 2005
Location: यमलोक
Posts: 253
Default Re: Help me learn C language

Quote:
Originally Posted by adi007
^^please tell why??
though i have not learned C by it but i found it ok...
You also find TC++ ok. I came, I saw, I detested. And I won't explain why.
Yamaraj is offline  
Closed Thread

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
A big qn! Which Programming Language To Learn? william Programming 33 28-01-2010 08:26 PM
Which language should I learn? aditya.shevade Programming 27 27-12-2007 08:03 PM
Language to learn hemant_mathur Programming 5 25-04-2006 10:01 PM
ich wanna learn language..... mario_pant Networking 3 14-07-2005 05:09 PM
which language to learn ?? :-/ tweety_bird_bunny Programming 17 05-07-2005 07:52 AM

 
Latest Threads
- by Charan
- by Sarath
- by clmlbx

Advertisement




All times are GMT +5.5. The time now is 12:46 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.

Search Engine Optimization by vBSEO 3.3.2