Urdu spoken by close to 100 million people around the world. It is the official language of Pakistan, Urdu is also spoken in Afghanistan, Bahrain, Bangladesh, Botswana, Fiji, Germany, Guyana, India, Malawi, Mauritius, Nepal, Norway, Oman, Qatar, Saudi Arabia, South Africa, Thailand, the UAE, the UK and Zambia
Spoken Urdu and Hindi are almost identical at the day-to-day functional level,After learning Urdu, but written Hindi is written in a different script. Other languages written in the same script as Urdu include Pashto, Kashmiri and Panjabi. The Urdu script is over 90% similar to the Persian and Arabic scripts as well, so learning Urdu will help you to read the Arabic and Persian alphabets.
Urdu and Hindi are very close to each other and the grammar is almost exactly the same. However Urdu is spoken mostly by Muslim of sub-continent so it has greater influence of many words from Arabic and Persian. On the other hand Hindi uses vocabulary from Sanskrit.
Written Urdu and Hindi are totally different.
Hindi is written from left to right in the Devanagari script whereas Urdu is written from right to left in a modified Persian-Arabic script called Nasta'liq.