Hi Team,

Want to the merits/demerits/risks in using the string literals which are being passed as argument to other routines.

This string lietrals are directly assigned to the character pointer variable (with out any explicit memory allocation).

Example code is as below
Code:
char *option = "-1 -i 1200 -f";
file_write(option);
In above code snippet , can the memory be intact in calling functions. As I believe we have not allocated explicitly any overide in the memory location pointing towards option can be a possibility.

Thanks
RK