Thanks 4 ur help. I tried compiling it and running it but it does not seem to work. I get values like shown below. Paratest is my exe where I paste the code sample u posted in reply.
**********************************************
D:\TCPP\BIN>paratest 2 ha
Value is ≈
Value is ∙
Value is
D:\TCPP\BIN>paratest hai
Value is ∙
Value is
**********************************************