Multiple choice technology security

What will be sizeof(name) return? char *name="32000";

  1. 4 - it is the size of the pointer

  2. 5 - it is the number of characters in the string that the pointer points to

  3. 4 - it is the size when 32000 is stored as integer

  4. 1 - it is the size of a character variable

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

The variable 'name' is declared as a pointer to a character ('char *'). The 'sizeof' operator applied to a pointer returns the size of the pointer itself (typically 4 or 8 bytes depending on the architecture), not the length of the string.