Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

How can a string be converted to a number?

1066


How do we declare variables in c?

1115


Explain the difference between #include "..." And #include <...> In c?

1088


What is the g value paradox?

1249


Explain what is the difference between a string and an array?

1221


Describe how arrays can be passed to a user defined function

1340


why return type of main is not necessary in linux

2150


Differentiate between the expression “++a” and “a++”?

1309


What is the use of static variable in c?

1142


What is #include called?

1101


What is the use of pointers in C?

1133


Explain the ternary tree?

1077


What is character constants?

1229


What is a structural principle?

1240


What is memcpy() function?

1167