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 a wrapper function in c?
I need a help with a program: Write a C program that uses data input in determining the whole of points A and a whole of circles B. Find two points in A so that the line which passes through them, cut through the maximum number of circles.
Is int a keyword in c?
What are the advantages and disadvantages of pointers?
What is call by value in c?
Is malloc memset faster than calloc?
What does & mean in scanf?
In C programming, what command or code can be used to determine if a number of odd or even?
I completed my B.tech (IT). Actually I want to develop virtual object that which will change software technology in the future. To develop virtual object what course I have to take. can I any professor to help me.
Give me the code of in-order recursive and non-recursive.
What is array of pointers to string?
What is || operator and how does it function in a program?
Write a program to replace n bits from the position p of the bit representation of an inputted character x with the one's complement. Method invertBit takes 3 parameters x as input character, p as position and n as the number of positions from p. Replace n bits from pth position in 8 bit character x. Then return the characters by inverting the bits.
What are the 4 types of functions?
Is c is a middle level language?