#include<stdio. h>
#include<math.h >
#include<conio. h>
void main()
{
printf("%d",(36 .0));
getch();
}
how output is 0
#include<math.h >
#include<conio. h>
void main()
{
printf("%d",(36 .0));
getch();
}
how output is 0
luuk@opensuse:~/tmp> cat test.c #include<stdio.h> #include<math.h> void main() { printf("%d\n",(36.0)); } luuk@opensuse:~/tmp> make test cc test.c -o test luuk@opensuse:~/tmp> ./test -733485528 luuk@opensuse:~/tmp> ./test 623260056 luuk@opensuse:~/tmp> ./test 694159224 luuk@opensuse:~/tmp> ./test -1080378728 luuk@opensuse:~/tmp> ./test 2002711112 luuk@opensuse:~/tmp>
luuk@opensuse:~/tmp> cat test.c #include<stdio.h> #include<math.h> void main() { printf("%d\n",(36.0)); } luuk@opensuse:~/tmp> make test cc test.c -o test luuk@opensuse:~/tmp> ./test -733485528 luuk@opensuse:~/tmp> ./test 623260056 luuk@opensuse:~/tmp> ./test 694159224 luuk@opensuse:~/tmp> ./test -1080378728 luuk@opensuse:~/tmp> ./test 2002711112 luuk@opensuse:~/tmp>
Comment