By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,319 Members | 2,361 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,319 IT Pros & Developers. It's quick & easy.

help please. very urgent

P: 60
can any one please tell what will be the output of the following program. its very urgent..........

main()
{
extern int fun(float);
int a;
a=fun(3.14);
printf(%d,a);
}
int fun(float aa)
{
return((int)aa);
}
Dec 3 '06 #1
Share this Question
Share on Google+
1 Reply


Expert 100+
P: 1,510
can any one please tell what will be the output of the following program. its very urgent..........

main()
{
extern int fun(float);
int a;
a=fun(3.14);
printf(%d,a);
}
int fun(float aa)
{
return((int)aa);
}
the simplest way to determine the output is to compile and run the program
note that the and in
Expand|Select|Wrap|Line Numbers
  1. printf(%d,a);
  2.  
should be a single " character
Expand|Select|Wrap|Line Numbers
  1. printf("%d",a);
  2.  
Dec 3 '06 #2

Post your reply

Sign in to post your reply or Sign up for a free account.