Computer Science, asked by kunalbidhuri4128, 1 year ago

What is the purpose of type declaration in c programming?

Answers

Answered by Anonymous
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 StaceeLichtenstein
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