give an example of type casting by a simple c program
Answer Posted / ola
#include<stdio.h>
void main()
{
float a;
a = (float)15 / 3;
printf("%f\n",a);
}
| Is This Answer Correct ? | 4 Yes | 4 No |
Post New Answer View All Answers
What are the rules for the identifier?
Why is void main used?
What does a pointer variable always consist of?
How many types of sorting are there in c?
Explain the binary height balanced tree?
Mention four important string handling functions in c languages .
What are the 5 elements of structure?
How do you redirect a standard stream?
Explain what is the difference between #include and #include 'file' ?
What is a 'null pointer assignment' error? Explain what are bus errors, memory faults, and core dumps?
Why we write conio h in c?
Write a C/C++ program to add a user to MySQL. The user should be permitted to only "INSERT" into the given database.
the 'sizeof' operator reported a larger size than the calculated size for a structure type. What could be the reason?
what is the height of tree if leaf node is at level 3. please explain
How can I open a file so that other programs can update it at the same time?