Home > C Programming > Typecasting > Questions and Answers
Exercise:
01. | Which header file do you need to include to use typecasting? | |||||||||||
|
02. | Which is a valid typecast? | |||||||||||
|
03. | Why can typecasting be dangerous? | |||||||||||
|
04. | Which is a good use for typecasting? | |||||||||||
|
05. | Which conversion is not possible? | |||||||||||
|
06. | Which of the following program structure/component/statement is not an example for implementation of modularization ? | |||||||||||
|
07. |
What is the output of following program? void main(){ int a; a=100; printf("%d%d",++a,a++); } | |||||||||||
|
08. |
What is the output of following program? void abc(int a, int b){ printf("%d%d",++a,++b); } void main(){ int a=10; abc(++a,a++); abc(a++,++a); printf("%d",a); } | |||||||||||
|
09. | What is the mean of type casting? | |||||||||||
|