this works perfectly in my environment!
#include <stdio.h>
#include <stdlib.h>
int main()
{
int error = 1;
float correction = 0.1;
printf("error =%d\n", error);
printf("correction=%0.1f\n", correction);
}
More Related Contents:
- In C, what is the correct syntax for declaring pointers?
- Variable redeclaration in c in loop and outside loop?
- Is char signed or unsigned by default?
- What is time_t ultimately a typedef to?
- Are all data pointers the same size in one platform for all data types? [duplicate]
- Where in memory are my variables stored in C?
- How does an uninitiliazed variable get a garbage value?
- How do I check if a variable is of a certain type (compare two types) in C?
- Why are global variables always initialized to ‘0’, but not local variables? [duplicate]
- Question about C behaviour for unsigned integer underflow
- Any guaranteed minimum sizes for types in C?
- Get warning when a variable is shadowed
- how to check if the input is a number or not in C?
- Why do we define INT_MIN as -INT_MAX – 1? [duplicate]
- Difference between size_t and unsigned int?
- C Programming: Forward variable argument list
- ISO C90 forbids mixed declarations and code in C
- Difference between _Bool and bool types in C?
- Why does fgetc() return int instead of char?
- How are variable names stored in memory in C?
- Programmatic way to get variable name in C?
- what is the unsigned datatype?
- plain C: opening a directory with fopen()
- How to use C library created by MATLAB Coder codegen in C program with emxArray arguments?
- Why / when to use `intptr_t` for type-casting in C?
- How are static variables with the same name in different functions identified by the System?
- Difference between static global variable and non-static global variable in C [duplicate]
- Uninitialized variable in C [duplicate]
- Returning function pointer type
- What defines an opaque type in C, and when are they necessary and/or useful?