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

can we implement multi-threads in c.

1087


C language questions for civil engineering

1653


What is an expression?

1000


write a c program to find the largest and 2nd largest numbers from the given n numbers without using arrays

2186


hi to every one .. how to view table pool after creating the pooled table? plz help me.. if any knows abt this ..

1869


Explain what header files do I need in order to define the standard library functions I use?

1115


FILE *fp1,*fp2; fp1=fopen("one","w") fp2=fopen("one","w") fputc('A',fp1) fputc('B',fp2) fclose(fp1) fclose(fp2)} a.error b. c. d.

1705


Why header files are used?

1064


Explain what are the standard predefined macros?

1071


Can we declare variable anywhere in c?

920


What is the method to save data in stack data structure type?

1035


what is event driven software and what is procedural driven software?

2508


Which one would you prefer - a macro or a function?

1034


A variable that is defined in a specified portion of a program but can be used throughout the program a) global variable b) local variable c) character d) none

1147


Is array a primitive data type in c?

1001