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
How can I find out how much free space is available on disk?
What does %c mean in c?
Explain which function in c can be used to append a string to another string?
What do you mean by recursion in c?
What is the use of putchar function?
Explain how does flowchart help in writing a program?
Explain what does a function declared as pascal do differently?
What is openmp in c?
what is different between auto and local static? why should we use local static?
Explain what are run-time errors?
Why is c used in embedded systems?
Why does notstrcat(string, "!");Work?
What is the advantage of using #define to declare a constant?
typedef struct{ char *; nodeptr next; } * nodeptr ; What does nodeptr stand for?
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