Click here to Skip to main content
15,893,266 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Sub programming in C Pin
«_Superman_»3-Jul-09 21:57
professional«_Superman_»3-Jul-09 21:57 
The subroutine in C language is called as function.
Do you mean that you have one function which calls another function and soon?
If so, yes you have to keep returning from the functions, either using the return statement or by reaching the end of the function, till you reach the top level function.

Whenever a function calls another function, it puts the return address on the stack just before the second function is called. So if you have a deep level of function calls, the stack has to unwinded properly.

«_Superman
I love work. It gives me something to do between weekends.

GeneralRe: Sub programming in C Pin
Andrew Jenkinson4-Jul-09 22:20
Andrew Jenkinson4-Jul-09 22:20 
AnswerRe: Sub programming in C Pin
Stuart Dootson3-Jul-09 23:26
professionalStuart Dootson3-Jul-09 23:26 
AnswerRe: Sub programming in C Pin
molesworth4-Jul-09 0:25
molesworth4-Jul-09 0:25 
GeneralRe: Sub programming in C Pin
Andrew Jenkinson5-Jul-09 0:42
Andrew Jenkinson5-Jul-09 0:42 
GeneralRe: Sub programming in C Pin
molesworth5-Jul-09 12:53
molesworth5-Jul-09 12:53 
QuestionMy Sql Connectiom Pin
MsmVc3-Jul-09 20:12
MsmVc3-Jul-09 20:12 
AnswerRe: My Sql Connectiom Pin
Christopher W. Smith3-Jul-09 21:00
Christopher W. Smith3-Jul-09 21:00 
QuestionRe: My Sql Connectiom Pin
MsmVc3-Jul-09 21:16
MsmVc3-Jul-09 21:16 
AnswerRe: My Sql Connectiom Pin
Stuart Dootson3-Jul-09 23:22
professionalStuart Dootson3-Jul-09 23:22 
Questionhide a dialog on task bar. Pin
chandu0043-Jul-09 19:12
chandu0043-Jul-09 19:12 
AnswerRe: hide a dialog on task bar. Pin
enhzflep3-Jul-09 19:30
enhzflep3-Jul-09 19:30 
QuestionSend values from Exe to Browser Pin
tgm.arjun093-Jul-09 16:59
tgm.arjun093-Jul-09 16:59 
AnswerRe: Send values from Exe to Browser Pin
David Crow3-Jul-09 17:35
David Crow3-Jul-09 17:35 
AnswerRe: Send values from Exe to Browser Pin
Hamid_RT4-Jul-09 0:00
Hamid_RT4-Jul-09 0:00 
QuestionConstructor Exception Pin
hpjchobbes3-Jul-09 9:08
hpjchobbes3-Jul-09 9:08 
AnswerRe: Constructor Exception Pin
Stuart Dootson3-Jul-09 9:26
professionalStuart Dootson3-Jul-09 9:26 
QuestionIE automation [modified] Pin
eoloe3-Jul-09 8:08
eoloe3-Jul-09 8:08 
AnswerRe: IE automation Pin
Stuart Dootson3-Jul-09 8:47
professionalStuart Dootson3-Jul-09 8:47 
Questionsimple template question Pin
minkowski3-Jul-09 6:53
minkowski3-Jul-09 6:53 
QuestionRe: simple template question Pin
CPallini3-Jul-09 7:56
mveCPallini3-Jul-09 7:56 
AnswerRe: simple template question Pin
Stuart Dootson3-Jul-09 8:39
professionalStuart Dootson3-Jul-09 8:39 
QuestionSockets trouble in Visual Studio 2008 Pin
Manmohan293-Jul-09 5:07
Manmohan293-Jul-09 5:07 
AnswerRe: Sockets trouble in Visual Studio 2008 Pin
«_Superman_»3-Jul-09 5:10
professional«_Superman_»3-Jul-09 5:10 
AnswerRe: Sockets trouble in Visual Studio 2008 Pin
Stuart Dootson3-Jul-09 5:31
professionalStuart Dootson3-Jul-09 5:31 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.