โ† Aricent questions

Static, global and local variables; declaration vs definition; malloc/free

Filed under Aricent

The question

Asked to declare static, global and local variables and explain usage, storage, scope and lifetime, the difference between declaration and definition, to allocate 40 bytes for an integer with malloc and free it, and how free knows the size without it being given.

No write-up yet. Related questions below have one.

Related Aricent questions

Collected from public candidate posts and coding forums. Updated Nov 2026.