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
Which is more efficient, a switch statement or an if else chain?
Lists the benefits of c programming language?
What is pass by value in c?
What is c programming structure?
What are the general description for loop statement and available loop types in c?
what is the difference between 123 and 0123 in c?
What is header file definition?
Why main is used in c?
What is the purpose of clrscr () printf () and getch ()?
Why doesnt that code work?
What are types of structure?
What is a built-in function in C?
pierrot's divisor program using c or c++ code
What is the size of enum in bytes?
What is a const pointer?