give an example of type casting by a simple c program
Answer Posted / guest
[code]
#include<stdio.h>
main()
{
float a;
a = (float)15 / 3;
printf("%f\n",a);
}
[/code]
| Is This Answer Correct ? | 7 Yes | 4 No |
Post New Answer View All Answers
What is auto keyword in c?
What are header files in c programming?
Write a function which takes as parameters one regular expression(only ? and * are the special characters) and a string and returns whether the string matched the regular expression.
Write a code to achieve inter processor communication (mutual exclusion implementation pseudo code)?
What is the difference between functions abs() and fabs()?
Explain how can a program be made to print the line number where an error occurs?
In C programming, how do you insert quote characters (‘ and “) into the output screen?
What are the __date__ and __time__ preprocessor commands?
What does %2f mean in c?
Explain can static variables be declared in a header file?
Why main function is special give two reasons?
what is use of malloc and calloc?
What does c mean before a date?
in multiple branching construct "default" case is a) optional b) compulsarily c) it is not include in this construct d) none of the above
How can I invoke another program or command and trap its output?