+ 6

How would you declare a constant "Sololearn" with a value of 5? Is the answer #define Sololearn 5?

Const Sololearn =5; int sololearn =5; #define Sololearn 5 var int Sololearn =5

26th Jan 2019, 9:33 AM
Zhenis Otarbay
Zhenis Otarbay - avatar
4 Antworten
+ 3
const int Sololearn = 5;
26th Jan 2019, 9:38 AM
Lokesh Tripathi
Lokesh Tripathi - avatar
+ 5
Lokesh Tripathi, but there is no such answer
26th Jan 2019, 9:39 AM
Zhenis Otarbay
Zhenis Otarbay - avatar
+ 1
#define Sololearn 5 It's right or you can use const keyword method, but Don't put a semicolon at the end of the define method
26th Jan 2019, 9:39 AM
Lokesh Tripathi
Lokesh Tripathi - avatar
+ 1
the answer is const sololearn=5 no type means default type, that is “int”
30th Jul 2019, 10:27 AM
Fariborz