guidance

guidance

Post by Deepjoyti on Sun May 01, 2011 10:39 am
([msg=56866]see guidance[/msg])

guys ,
1)are library/header files essential elements in "C" programming
such as,
#include<stdio.h>
#include<conio.h>
--------------------------------------------------
2)is there any relation between modules in perl/python and library/header files in "C" ????


i'm a beginner.......... kindly elaborate me on these :D
Deepjoyti
New User
New User
 
Posts: 2
Joined: Wed Apr 06, 2011 9:23 am
Blog: View Blog (0)


Re: guidance

Post by Gatito on Sun May 01, 2011 2:46 pm
([msg=56870]see Re: guidance[/msg])

1) Short answer, yes.

Without them programming in C would become nasty. Even the simple printf() function has a lot of work to do for printing a line at the screen and I mean a lot. Try and debug a program and follow it inside the declaration of printf() you will see that there are a ton of lines just for that. Imagine typing the same lines for every time you would want to print something on the screen...

This little sample gives a good idea about the use of header files. They help writing clean code and dividing big complex program to smaller easier to handle logical pieces.

2) Although there are differences between them the concept remains the same.
User avatar
Gatito
Poster
Poster
 
Posts: 113
Joined: Tue Mar 08, 2011 12:55 pm
Blog: View Blog (0)



Return to C and C++

Who is online

Users browsing this forum: No registered users and 0 guests