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


Please Help Members By Posting Answers For Below Questions

How can I manipulate strings of multibyte characters?

631


Which control loop is recommended if you have to execute set of statements for fixed number of times?

805


Explain how many levels deep can include files be nested?

622


What is the difference between scanf and fscanf?

660


What is NULL pointer?

671






Explain what are multibyte characters?

623


What is a pointer value and address in c?

630


write a C program:There is a mobile keypad with numbers 0-9 and alphabets on it. Take input 0f 7 keys and then form a word from the alphabets present on the keys.

14955


What is the difference between pure virtual function and virtual function?

645


what type of questions arrive in interview over c programming?

1551


Ow can I insert or delete a line (or record) in the middle of a file?

570


Explain the use of bit fieild.

708


What is variable and explain rules to declare variable in c?

549


Can we access array using pointer in c language?

640


List the difference between a "copy constructor" and a "assignment operator"?

578