Help me shorten my code

I want to know how all use ll instead of long long , when I write code I always write long long int and this makes code look ugly and big but I’ve see bhayya using ll shortcut instead of long long I want to learn that any great resource where I can learn such shortcuts?:pray:

Hey @tharunnayak14
You can use
#define ll long long
or
typedef long long ll;

You can make many more shortcuts using #define preprocessor directive(also known as macros).
Follow this to learn more about it :https://docs.microsoft.com/en-us/cpp/preprocessor/hash-define-directive-c-cpp?view=vs-2019
http://elearning.algonquincollege.com/coursemat/viljoed/gis8746/concepts/macros/advantages.htm

1 Like

Thanks for your time :grinning:

1 Like

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.