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 is string in c language?
How are pointers declared in c?
Explain indirection?
Explain modulus operator. What are the restrictions of a modulus operator?
Can we initialize extern variable in c?
Why main is not a keyword in c?
How do you redirect a standard stream?
If errno contains a nonzero number, is there an error?
how to solve "unable to open stdio.h and conio.h header files in windows 7 by using Dos-box software
Explain modulus operator.
How many loops are there in c?
How will you write a code for accessing the length of an array without assigning it to another variable?
What is a method in c?
What is difference between structure and union in c?
What is wrong in this statement?