Multiple choice technology security

In the following code snippet, how to handle pointer? int main (int argc, char argv[]) { char j; j=argv[1]; int k=atoi(j); /delete here/ return 0; }

  1. delete j;

  2. realloc j;

  3. free j;

  4. It need not be deleted

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

The pointer j is assigned from argv[1], which points to memory managed by the system as part of the process's argument vector. This memory should NOT be freed, deleted, or reallocated by the application - it belongs to the C runtime. Using free(), delete, or realloc on argv pointers causes undefined behavior. Option D is correct - it need not be deleted.