What is the difference between Declaration and Assignment?

1 answer

Answer

1080914

2026-07-24 01:51

+ Follow

Declaration is basically defining data type and length and assignment is to assign the value.

Below is the declaration --

var a integer /* this means we are declaring a variable a as integer data type */

a= 5 /* this is assignment,we are assigning 5 to variable a */

ReportLike(0ShareFavorite

Copyright © 2026 eLLeNow.com All Rights Reserved.