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
What are the data types present in c?
Which control loop is recommended if you have to execute set of statements for fixed number of times?
What is memcpy() function?
What is a const pointer?
What is the use of typedef in structure in c?
Why is main function so important?
What is the function of volatile in c language?
How can I discover how many arguments a function was actually called with?
What’s the special use of UNIONS?
Why c language?
What are local static variables? How can you use them?
Why is void main used?
Explain the difference between #include "..." And #include <...> In c?
What is difference between far and near pointers?
Define Array of pointers.