main()
{
clrscr();
}
clrscr();
Answers were Sorted based on User's Feedback
Answer / susie
Answer :
No output/error
Explanation:
The first clrscr() occurs inside a function. So it becomes a
function call. In the second clrscr(); is a function
declaration (because it is not inside any function).
| Is This Answer Correct ? | 4 Yes | 0 No |
How to return multiple values from a function?
main() { char *p = “ayqm”; printf(“%c”,++*(p++)); }
29 Answers IBM, TCS, UGC NET, Wipro,
int a=1; printf("%d %d %d",a++,a++,a); need o/p in 'c' and what explanation too
main() { 41printf("%p",main); }8
#include<conio.h> main() { int x,y=2,z,a; if(x=y%2) z=2; a=2; printf("%d %d ",z,x); }
void func1(int (*a)[10]) { printf("Ok it works"); } void func2(int a[][10]) { printf("Will this work?"); } main() { int a[10][10]; func1(a); func2(a); } a. Ok it works b. Will this work? c. Ok it worksWill this work? d. None of the above
void main() { while(1){ if(printf("%d",printf("%d"))) break; else continue; } }
/*what is the output for*/ void main() { int r; printf("Naveen"); r=printf(); getch(); }
main() { int i; i = abc(); printf("%d",i); } abc() { _AX = 1000; }
void main() { int i=5; printf("%d",i+++++i); }
main() { if ((1||0) && (0||1)) { printf("OK I am done."); } else { printf("OK I am gone."); } } a. OK I am done b. OK I am gone c. compile error d. none of the above
What is the output for the program given below typedef enum errorType{warning, error, exception,}error; main() { error g1; g1=1; printf("%d",g1); }