Prepare for your Next Interview
|
Welcome to the Geeks Talk forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact contact us. |
This is a discussion on c question within the C and C++ forums, part of the Software Development category; where does function declerations and func definations gets memory/stored? where does 'printf()' definations stored?...
|
|||||||
|
|||
|
where does function declerations and func definations gets memory/stored?
where does 'printf()' definations stored? |
| The Following User Says Thank You to karkeraashwith For This Useful Post: | ||
| Sponsored Links |
|
|||
|
Re: c question
Quote:
Function decleration stored in .obj & function definition stored in .h & printf definition stored in .libc. Thanks, Riju. Last edited by rijus; 09-12-2009 at 05:28 AM. |
|
|||
|
Re: c question
Quote:
In general , function declarations will be in .h files, and function definitions will go into .c files. During compillation , when the compiller comes across statement of the function call , it checks the function declarations(proto types) which will be used for validation. If there is type mis-match, error will be thrown. Coming to printf: It is standard library function. If static linkage is used, then the linker copies all library functions(here printf) used in the program into the executable image. If dynamic linkage is used, only link to shared library will be placed in the executable image. |
|
|||
|
Re: c question
If you want to delete the first element, make the pointer.head(this points to the beginning of the linked list) pointer to point to the second element.
pointer.head = pointer.next If you want to delete the last element, set the pointer.next(this points to the next element of the linked list) pointer of the last but second element to NULL. p = pointer.head; while (p != NULL) { p = p.next; if p = NULL { q = NULL; break; } q = p; } If you want to delete any other element, make the pointer.next(this points to the previous element of the linked list) pointer to point to the next element in the list. |
|
|||
|
Re: c question
printf() defination stored in <stdio.h> library or we say header ile
amit gupta |
| The Following User Says Thank You to amitgupta_knmiet For This Useful Post: | ||
![]() |
|
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Question | shitalpatil | Brainteasers | 6 | 06-26-2009 04:37 AM |
| question | jayanth511 | SQL | 5 | 11-04-2008 07:52 AM |
| Question | Manoj.Oracle | Oracle Apps | 2 | 03-10-2008 08:54 AM |
| Question | padmakrishna | Java | 0 | 01-22-2008 04:04 PM |
| c question..? | kamanianil | C and C++ | 0 | 08-07-2007 06:30 AM |