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

Answers were Sorted based on User's Feedback



give an example of type casting by a simple c program..

Answer / 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

give an example of type casting by a simple c program..

Answer / 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

More C Interview Questions

What is the main difference between calloc () and malloc ()?

0 Answers  


array contains zeros and ones as elements.we need to bring zeros one side and one other side in single parse. ex:a[]={0,0,1,0,1,1,0,0} o/p={0,0,0,0,0,1,1,1}

12 Answers   Google, Motorola,


What does 1f stand for?

0 Answers  


What are the rules for identifiers in c?

0 Answers  


Are pointers integer?

0 Answers  


what is the use of macro program

1 Answers   TCS,


disadvantages of realloc ?

1 Answers   HCL,


How can you be sure that a program follows the ANSI C standard?

0 Answers   Aspire, Infogain,


create an SINGLE LINKED LISTS and reverse the data in the lists completely

3 Answers  


How can you restore a redirected standard stream?

0 Answers  


how to print 2-D array using a single for loop?

2 Answers   Mind Tree, TCS, Value Labs,


the maximum width of a c variable name can be a) 6 characters b) 8 characters c) 10 characters d) 20 characters

2 Answers  


Categories