Here is how to type a famous hello.c and compile it, and execute it in emacs:..
Beside the editing command, above demonstration uses following Emacs commands:
(defun unicode-shell () "Execute the shell buffer in UTF-8 encoding. Note that you'll need to set the environment variable LANG and others appropriately." (interactive) (let ((coding-system-for-read 'utf-8) (coding-system-for-write 'utf-8) (coding-system-require-warning t)) (call-interactively 'shell)))