- 5

Fill in the blanks to define the macro SQR if the TRIPLE macro is defined, otherwise define TRIPLE.

# ifdef TRIPLE #define SQR(x) (x) * (x) # else #define TRIPLE(x) (x) * 3 # endif

20th Nov 2020, 1:13 PM
Jason Chew
Jason Chew - avatar
3 Antworten
+ 8
Jason Chew , What is the purpose of your post? You have done around 10 posts like this. You have done and finished most of the programming tutorials, so it's not clear what you want to achieve. It would be great if you could give us a short feedback. Thanks!
20th Nov 2020, 3:39 PM
Lothar
Lothar - avatar
+ 4
Hi Lothar, thank you for your comment. I am trying to learn as much as possible as I felt I am lacking a lot of vital skills for a living. Thanks for your understanding.
21st Nov 2020, 12:24 AM
Jason Chew
Jason Chew - avatar
+ 1
ifdef else endif
26th Jul 2021, 8:06 AM
Yashika Patel