What is the purpose of type declaration in c programming?
Answers
Answered by
3
Hi,
We have to declare type in c because c is strongly typed language, and if we do so compiler know how much memory that variable needs top be stored.
Answered by
2
Following are the purpose of type declaration in c programming is given below .
Explanation:
- The type declarations are essential because they tell the translator such as compiler about the meaning of the identifying word, and how to use the identified object..
- In the c programming it is necessary to defined the type declaration because function prototype is matched with the function definition .If it mismatch will occur then program will gives an compilation error.
void fun();// function declaration
Learn More :
- brainly.in/question/15301771
Similar questions