give an example of type casting by a simple c program
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / ola
#include<stdio.h>
void main()
{
float a;
a = (float)15 / 3;
printf("%f\n",a);
}
| Is This Answer Correct ? | 4 Yes | 4 No |
what is different between auto and local static? why should we use local static?
what is a function method?give example?
Can we write a program without main() function?
What is c language and why we use it?
what is the difference between exit() and _exit() functions?
When should structures be passed by values or by references?
What is ambagious result in C? explain with an example.
What is a void pointer? When is a void pointer used?
what is difference between array and structure?
44 Answers College School Exams Tests, CTS, Google, HCL, IBM, Motorola, TCS,
what is c programing
Write a program to check whether a number is prime or not using c?
What is alloca() and why is its use discouraged?