We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
Its ranged for. Do note that this will work only with C++11. And auto is the magic keyword. You can skip writing complex datatypes if you are initializing a variable when you are declaraing it. The compiler will determine the datatype for you from the context. & is necessary here otherwise values within string will not change.
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Caesar Cipher
You are viewing a single comment's thread. Return to all comments →
Its ranged
for
. Do note that this will work only with C++11. Andauto
is the magic keyword. You can skip writing complex datatypes if you are initializing a variable when you are declaraing it. The compiler will determine the datatype for you from the context.&
is necessary here otherwise values within string will not change.