title: How to escape ampersand character in C programming?
body: <p>I want to pass a url containing ampersand sign to a shell script using C program.  So I have to create the url string and pass it to shell script using system call . How can I escape ampersand character while making string in C?  To pass to script I have  to escape ampersand sign. How can it be done?  It tried with \&amp;.  But it threw error </p>