You are here:

C/!Expanded Source Code

Advertisement


Question
Hello Mr. Narendera,

I would like to ask the following:

Q1. What is the exact sequence of execution of a program in c Language?  
I mean, what all processes take place before execution?

Q2. I'd like to know about memory models (i.e. small, compact, huge).  What is their significance and how one can define memory model for its own programme?

Q3. How can I view expanded source code of a C Language program?

With regards,

Himanshu

Answer
Q1. What is the exact sequence of execution of a program in c Language?  
I mean, what all processes take place before execution?
Ans> This is not related to the programming language.
Instead it is dependent on the platform you are working and each platform will have its own way of doing things.

Q2. I'd like to know about memory models (i.e. small, compact, huge).  What is their significance and how one can define memory model for its own programme?
I don't think you have that liberty.

Q3. How can I view expanded source code of a C Language program?
On a Solaris or Linux box, you can use 'gcc -E prog.c' to get the expanded (after PREPROCESSOR run) C code.

C

All Answers


Answers by Expert:


Ask Experts

Volunteer


Narendra

Expertise

I can answer questions in C related to programming, data structures, pointers and file manipulation. I use Solaris for doing C code and if you have questions related to C programming on Solaris, I will be able to help better.

Experience

6.5

Organizations belong to
Sun Microsystems

Awards and Honors
Brain Bench Certified Expert C programmer.
Advanced System Software Certified

©2012 About.com, a part of The New York Times Company. All rights reserved.