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

What is auto keyword in c?

1208


What are header files in c programming?

1137


Write a function which takes as parameters one regular expression(only ? and * are the special characters) and a string and returns whether the string matched the regular expression.

1098


Write a code to achieve inter processor communication (mutual exclusion implementation pseudo code)?

1121


What is the difference between functions abs() and fabs()?

1157


Explain how can a program be made to print the line number where an error occurs?

1219


In C programming, how do you insert quote characters (‘ and “) into the output screen?

1533


What are the __date__ and __time__ preprocessor commands?

1119


What does %2f mean in c?

1226


Explain can static variables be declared in a header file?

1155


Why main function is special give two reasons?

1545


what is use of malloc and calloc?

1906


What does c mean before a date?

1183


in multiple branching construct "default" case is a) optional b) compulsarily c) it is not include in this construct d) none of the above

1058


How can I invoke another program or command and trap its output?

1097