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
Why is it that not all header files are declared in every C program?
Why ca not I do something like this?
An integer that indentifies the position of a data item in a sequence of data items a) value b) number c) index d) all of the above
Can an array be an Ivalue?
How many keywords are there in c?
Are bit fields portable?
What are the basic data types associated with c?
What are local variables c?
How is actual parameter different from the formal parameter?
Why string is used in c?
Explain the use of bit fieild.
When I tried to go into a security sites I am denied access and a message appeared saying 'applet not initialize'. How can I rectify this problem.
What is use of integral promotions in c?
how many types of operators are include in c language a) 4 b) 6 c) 8 d) 12
What are the disadvantages of a shell structure?