#define clrscr() 100
main()
{
clrscr();
printf("%d\n",clrscr());
}
Answers were Sorted based on User's Feedback
Answer / susie
Answer :
100
Explanation:
Preprocessor executes as a seperate pass before
the execution of the compiler. So textual replacement of
clrscr() to 100 occurs.The input program to compiler looks
like this :
main()
{
100;
printf("%d\n",100);
}
Note:
100; is an executable statement but with no
action. So it doesn't give any problem
| Is This Answer Correct ? | 44 Yes | 2 No |
Answer / naveen
yes it works and prints 100 because we defined clrscr() to
100. we can also set values to any predefined functions
| Is This Answer Correct ? | 20 Yes | 1 No |
#define int char main() { int i=65; printf("sizeof(i)=%d",sizeof(i)); }
main() { static int var = 5; printf("%d ",var--); if(var) main(); }
void main() { int i=i++,j=j++,k=k++; printf(ā%d%d%dā,i,j,k); }
Implement a t9 mobile dictionary. (Give code with explanation )
1 Answers Amazon, Peak6, Yahoo,
write a program to Insert in a sorted list
#include<stdio.h> main() { register i=5; char j[]= "hello"; printf("%s %d",j,i); }
String copy logic in one line.
main() { printf("%x",-1<<4); }
void main() { char ch; for(ch=0;ch<=127;ch++) printf(ā%c %d \nā, ch, ch); }
programming in c lanugaue programm will errror error with two header file one as stdio.h and other one is conio.h
main(){ int a= 0;int b = 20;char x =1;char y =10; if(a,b,x,y) printf("hello"); }
Set up procedure for generating a wire frame display of a polyhedron with the hidden edges of the object drawn with dashed lines