Thank you, it works now.
Type: Posts; User: ak22
Thank you, it works now.
Hello,
I have the following files:
mainlinemem.c...
#include <stdio.h>
int gcdmem(int a,int b);
What is the difference between defining and declaring a variable?
Thanks!
I've been stuck for hours trying to solve the following exercise:
"Write a function called monthName that takes as its argument a value of type enum
month (as defined in this chapter) and returns...
I solved it!
#include <stdio.h>
main()
{
float fl, last, last_b, power;
double db, lastdb, lastdb_b, power_b;
fl = 0;
Thanks a lot, guys. I'm beginning to grasp how floating-point numbers work.
I will try to write a code for this. This looks a little harder.
I think I figured out how to get the minimum values of floating-points.
The following code:
#include <stdio.h>
main()
{
float fl, last;
I just realized that the following two minimum values:
Minimum range of float variable: 1.175494e-038 and
Minimum range of double variable: 2.225074e-308
are actually 0. (I've put the %e...
Hi,
I'm trying to solve exercise 2-1 from "The C Programming Language", 2nd edition, which asks to:
"Write a program to determine the ranges of char, short, int, and long variables, both signed...
I'm trying to determine the minimum range of floating-point types.
It's easy when using values from standard headers:
#include <stdio.h>
#include <float.h>
main()
{