when is typedef keyword used ??
why is it used ??
When is typedef keyword used?
hello @anujsharmabadboy
type def is use to give differnt name to existing variable.
mostly it is use to give shorter names to some large declaration
- typedef unsigned int unit;
for examlple here in place of writing unsigned int u can use a shorter name unit
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.