Hello Gurus

I need info regarding program execution.

1. When we include libraries using the #include directive, will the entire library be included in the executable?

2. How are libraries liked statically and dynamically?

3. When a program is executed, should the data as well as the fuctions in the program be available on the memory(either normally or through paging)?

4. Are dynamically linked libraries and shared libraries same? If not , what is the difference?

Thanks in advance,
Satya Prasad