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...

Write a c program to demonstrate Type casting in c?

Answer Posted / pinkey

#include<stdio.h>
#include<conio.h>
void main()
{
int a=5,b=4,c;
c=short(a+b);
printf("%d",c);
getch();
}

Is This Answer Correct ?    7 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the data types present in c?

1106


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

1306


What is memcpy() function?

1057


What is a const pointer?

1049


What is the use of typedef in structure in c?

927


Why is main function so important?

1063


What is the function of volatile in c language?

1078


How can I discover how many arguments a function was actually called with?

1030


What’s the special use of UNIONS?

1116


Why c language?

1013


What are local static variables? How can you use them?

1091


Why is void main used?

1045


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

995


What is difference between far and near pointers?

993


Define Array of pointers.

1055