Recent C Aptitude Posts
Showing posts 1 - 1 of 1.
View more »
|
|
|
|
|
Tutorials >
C Aptitude QuestionsC Aptitude Question : Macro
C Aptitue Question : Macro Question What is the output of the program? #defineABC 20 #define XYZ 10 #define XXX ABC - XYZ void main() { int a; a = XXX * 10; printf("%d\n", a); } Solution: a = xxx * 10 which is => a = ABC - XYZ * 10 => a = 20 - 10 * 10 => a = 20 - 100 => a = -80
1-1 of 1 |