compile this !!!!

Post new topic   Reply to topic

View previous topic View next topic Go down

compile this !!!!

Post  amazon on Thu Jan 08, 2009 1:16 pm

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 4:00 pm

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

ankurgutpa

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

View user profile

Back to top Go down

View previous topic View next topic Back to top


Post new topic   Reply to topic
Permissions of this forum:
You cannot reply to topics in this forum