compile this !!!!

Go down

compile this !!!!

Post  amazon on Thu Jan 08, 2009 6:16 am

test0.c

#include<stdio.h>
main()
{
fun(2.3);
}


test1.c

#include<stdio.h>
void fun(float a)
{
printf(" yes it did");
}


compile this :
$gcc test[0-1].c


now replace test1.c


#include<stdio.h>
void fun(float a)
{
printf(" yes it did %f ",a);
}

again compile


??????????

amazon

Posts : 13
Join date : 2008-08-10

View user profile

Back to top Go down

Re: compile this !!!!

Post  ankurgutpa on Mon Jan 12, 2009 9:00 am

program is compiling well w/o any error but on executing it is giving wrong value of f as passed in function.
Why is it so Question
avatar
ankurgutpa

Posts : 44
Join date : 2008-08-10
Age : 30
Location : Tandon 72

View user profile

Back to top Go down

Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum