compile this !!!!
Page 1 of 1 • Share •
compile this !!!!
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
??????????
#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
Re: compile this !!!!
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
Why is it so

ankurgutpa- Posts: 44
Join date: 2008-08-10
Age: 22
Location: Tandon 72
Permissions of this forum:
You cannot reply to topics in this forum





