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

How can I find out how much free space is available on disk?

1055


What does %c mean in c?

1083


Explain which function in c can be used to append a string to another string?

1088


What do you mean by recursion in c?

1104


What is the use of putchar function?

1057


Explain how does flowchart help in writing a program?

1113


Explain what does a function declared as pascal do differently?

1281


What is openmp in c?

1022


what is different between auto and local static? why should we use local static?

1124


Explain what are run-time errors?

1085


Why is c used in embedded systems?

1116


Why does notstrcat(string, "!");Work?

1135


What is the advantage of using #define to declare a constant?

1096


typedef struct{ char *; nodeptr next; } * nodeptr ; What does nodeptr stand for?

1637


This is a variation of the call_me function in the previous question:call_me (myvar)int *myvar;{ *myvar += 5; }The correct way to call this function from main() will be a) call_me(myvar) b) call_me(*myvar) c) call_me(&myvar) d) expanded memory

1267