Amey Meher
Amey Meher

Reputation: 111

Representing two or more data types with a single reference in CPP

In my code, for certain variables I always have to write unsigned long long for the declaration of the variables. Is there a way to represent unsigned long long using a single word, something like "ULL", and then use this syntax to declare other variables. Eg ULL amount;

Upvotes: 4

Views: 120

Answers (2)

darune
darune

Reputation: 10962

using ULL = unsigned long long;

Upvotes: 5

user11415482
user11415482

Reputation:

You have to declare it like this:

typedef unsigned long long ULL;

Upvotes: 6

Related Questions