Question: Often I hear people around me who like to discussion about writing in assembly language and which is one of those reasons I'm also want to learn to write it. Currently I'm learning assembly and C together.

So, my question is when do you ever need to write assembly in real code?  

Is it just good to learn?  

Are there are any real uses of it when writing code in C?

Any helpful comments or answers will be appreciated!

Answer: 
Despite the fact that writing code in assembly became increasingly rare, it is still very good to learn assembly simply to understand how things work under the hood. Modern optimizing compilers of C/C++ let you write code in C that translates into assembly instructions of very high quality, often surpassing what you could write manually at the expense of making the result less readable (e.g by inserting empty instructions to optimize the use of CPU's pipeline).

If you write a compiler for a new architecture, a very low-level library, or an embedded system with strict resource constraints, you may need to use assembly. For everything else, C and C++ will do as well or better.
I've done it twice in 2011 so far, and I mostly work on Java line of business apps. Came in handy for whipping up a quick setup.exe to wrap a JRE and app install. Could have done that in C, but it's quicker to grab and setup an assembler than a compiler and for such a simple app the write time is comparable either way... Also used it to work on a problem interfacing with a USB device. Was failing for unknown reasons via JNA, so I wrote it in assembly to make sure I knew where every bit was going and when.