just to add I am using gcc from GNU for compiling above.