+ 2

What is the answer of below code? Justify the answer!

#include<stdio.h> #include<conio.h> #define clrscr() 100 int main() { clrscr(); printf("%d",clrscr()); }

28th Jan 2017, 2:51 PM
Bhargav Bhojani
2 Antworten
+ 3
100 As define preprocessor will change clrscr() by 100 in all over the program.So after define, program will change as follow: #define clrscr() 100 int main() { 100; printf("%d",100); }
28th Jan 2017, 4:11 PM
Ash
Ash - avatar
+ 2
100? *_* I understand about define more with this now
28th Jan 2017, 3:22 PM
Yanothai Chaitawat
Yanothai Chaitawat - avatar