best questions of c with answer

(q) What will be output of the following program?
void  main(){
enum data1{a,c,e}p;
enum data2{b,d,f}q;
p=q;
clrscr();
printf("%i",p);
getch();
}
Output: 0
Standard predefined stream question in c programming language.
(q) What will be output of the following program?
#include<stdio.h>
void  main(){
clrscr();
fputs("ERROR page",stderr);
getch();
}
Output: ERROR PAGE
Explanation:
It will display the output of program on standard error page
Post a Comment