answersLogoWhite

0

If it contains a decimal point or an exponential part, then it should be handled as a float (or double).

You can determine an existing variable's type in C using the type() function typeof is a gcc-extension, but not a function>

User Avatar

Wiki User

16y ago

What else can I help you with?

Continue Learning about Engineering

How do you write a program to find number of zeros for the given number in c program?

Assuming the number is represented by a decimal integer, initialise a counter to zero, then repeatedly divide the number by 10 and until the number is zero. After each division, examine the remainder. Each time the remainder is zero, increment the counter. If the number is represented by a decimal float, repeatedly multiply by 10 until the value is an integer, then perform the previous algorithm.


What the condition of check the given number is float or integer in c?

Aman is so smart and so handsome and so intelligent he is so goodlooking li


Write a FORTRAN code to calculating factorials?

Here is a simple FORTRAN code to calculate the factorial of a given non-negative integer: program factorial implicit none integer :: n, result print *, "Enter a non-negative integer:" read *, n result = 1 if (n < 0) then print *, "Factorial is not defined for negative numbers." else do i = 1, n result = result * i end do print *, "Factorial of", n, "is", result end if end program factorial This program prompts the user for an integer, checks if it's non-negative, and then calculates the factorial using a loop.


The value v of a shopkeepers inventory software program is given by v -13t 3 where t is the number of years since the shopkeeper bought the program What is the program worth 6 years after you?

$234


C program to print inverse of a given number?

Inversing of a given Number. suppose we gave input 123456 then the output of the program will be 654321./*mycfiles.wordpress.comC program to print inverse of a given number*/#include#includevoid main(){long int n,rn=0,d=0;clrscr();printf("Enter the number\n\n");scanf("%ld",&n);while(n>0){d=n%10;rn=rn*10+d;n=n/10;}printf("%ld",rn);getch();}

Related Questions

How do you write a program to find number of zeros for the given number in c program?

Assuming the number is represented by a decimal integer, initialise a counter to zero, then repeatedly divide the number by 10 and until the number is zero. After each division, examine the remainder. Each time the remainder is zero, increment the counter. If the number is represented by a decimal float, repeatedly multiply by 10 until the value is an integer, then perform the previous algorithm.


What the condition of check the given number is float or integer in c?

Aman is so smart and so handsome and so intelligent he is so goodlooking li


What number is the product of a given number and an integer?

An integral multiple of the given number.


What is the product of a given whole number and an integer?

It is a whole number which is another name for an integer.


How do you make 0.6666667 an integer?

The given number is a fraction. It cannot be made into an integer.


What does the nearest integer mean?

The nearest integer refers to the whole number that is closest to a given number on the number line. When determining the nearest integer, you round the given number to the whole number that is closest to it. For example, if the given number is 3.6, the nearest integer would be 4 because it is closer to 3.6 than 3.


What is the integer that best expresses the given and number of 19850?

The best integer to express the number 19850 is 19850.


What is the product of any given whole number and its integer?

A multiple of the number.


What is the integer that best expresses the given number 29028?

I suggest that the number which best expresses it is 29028.


Can you get definitely an integer and rational number between any two given numbers?

No. You cannot get an integer between 1.2 and 1.3


any of the products of a given number and another positive integer?

[object Object]


What is the greatest possible error of 512m?

Since the number is given to an integer, the answer is 0.5 metres.