how to create symlink in linux

C++
ln -s [/path/to/file] [/path/to/symlink] ln -s source_file myfile$ ln -s file1 link1
#Example: ln -s /var/file_i_want_to_link /etc/symbolic_link_nameln -s source_file symbolic_link
ln -s <location_of_file1> <desired_location_of_symlink> 
Source

Also in C++: