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 is wrong with this program statement? void = 10;
Why c language is called c?
How can I sort more data than will fit in memory?
Explain what are global variables and explain how do you declare them?
Explain what is the difference between far and near ?
What is getch () for?
What does %c mean in c?
What is c mainly used for?
can we implement multi-threads in c.
What is volatile, register definition in C
Why is extern used in c?
what is the function of pragma directive in c?
What is use of null pointer in c?
What does p mean in physics?
Explain a file operation in C with an example.