Taking time off from a hectic, high-octane election campaign, Indian politicians cooled their heels at tech parks in the IT City of Bangalore and took the opportunity to enhance their technical skills by writing C++ programs. One such program that our netas tried was to compare 2 strings. How did their code look like? The UnReal Times technical correspondent Python Nagaraju brings you the story:



(Disclaimer: Techies would appreciate this the best, but for those non-techie readers who are willing to read, here’s a quick explanation of some commands

cout<<: Prints a statement

cin>>: Receives input from the user

strcmp(): Compares 2 strings. Returns 0 if equal, a value > 0 if 1st string’s value greater than 2nd string’s, and a value < 0 otherwise

strrev(): Reverses a string)

Rahul Gandhi’s code

Dr. Manmohan Singh’s code

Deve Gowda’s code

Narendra Modi’s code

Arvind Kejriwal’s code

(Editor: Please blame Ashwin for all syntax errors, and not our dear netas.)

(Ashwin: These politicians wrote the code themselves, but I don’t have proof. Please believe me, though.)