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
How can a string be converted to a number?
How do we declare variables in c?
Explain the difference between #include "..." And #include <...> In c?
What is the g value paradox?
Explain what is the difference between a string and an array?
Describe how arrays can be passed to a user defined function
why return type of main is not necessary in linux
Differentiate between the expression “++a” and “a++”?
What is the use of static variable in c?
What is #include called?
What is the use of pointers in C?
Explain the ternary tree?
What is character constants?
What is a structural principle?
What is memcpy() function?