0

What is the difference between X and "X", when used as constants in C and describe their memory representation

C

6th Apr 2022, 6:05 AM
Pam Qeckie
4 odpowiedzi
+ 1
Do you have a code related to this doubt? need more clarity on the context ...
6th Apr 2022, 6:50 AM
Ipang
+ 1
Alright thank you
6th Apr 2022, 9:28 AM
Pam Qeckie
0
Then I can only tell you this... const int CI = X; Stores value of <X>. <X> could have been defined earlier, by pre-processor directive or another `const` definition. const char* CS = "X" Stores a one character C-String constant literal. Actually, that could be very wrong cause context is unclear.
6th Apr 2022, 8:52 AM
Ipang
- 1
Not really,
6th Apr 2022, 7:59 AM
Pam Qeckie