Function arguments
From: Amit Sharma (sharma.am_at_gmail.com)
Date: 09/30/04
- Next message: Chris Dollin: "Re: Function arguments"
- Previous message: Dan Pop: "Re: invalid floating point value"
- Next in thread: Chris Dollin: "Re: Function arguments"
- Reply: Chris Dollin: "Re: Function arguments"
- Reply: Dan Pop: "Re: Function arguments"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 30 Sep 2004 05:56:31 -0700
Hi,
I wanted to know when we call function with argument, Does the
arguments stored in stack always or it compiler specific and could be
stored in queue
e.g. Does this program's output depends upon the compiler specific or
always would be b a
#include<stdio.h>
int a()
{
printf("a\t");
return 0;
}
int b()
{
printf("b\t");
return 0;
}
void c(int a,int b)
{
}
int main()
{
c(a(),b());
return 1;
}
Thanks,
Amit
- Next message: Chris Dollin: "Re: Function arguments"
- Previous message: Dan Pop: "Re: invalid floating point value"
- Next in thread: Chris Dollin: "Re: Function arguments"
- Reply: Chris Dollin: "Re: Function arguments"
- Reply: Dan Pop: "Re: Function arguments"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|