MCQOPTIONS
Home
About Us
Contact Us
Bookmark
Saved Bookmarks
Testing Subject
General Aptitude
Logical and Verbal Reasoning
English Skills Ability
Technical Programming
Current Affairs
General Knowledge
Finance & Accounting
GATE (Mechanical Engineering)
Chemical Engineering
→
C Program
→
C Fundamentals
→
Determine output:#include#define clrscr() 100void...
1.
Determine output:#include#define clrscr() 100void main(){ clrscr(); printf("%dn", clrscr());}
A.
0
B.
1
C.
100
D.
Error
Answer» D. Error
Show Answer
Discussion
No Comment Found
Post Comment
Related MCQs
Find the output of the following program.#define INC(X) X++void main(){ int x=4; printf("%d", INC(x++));}%!
The output of the following program is:#define f(g,g2) g##g2void main(){ int var12=100; printf("%d", f(var,12));}%!
What will be output after executing following code?#include# define a 10void main(){ printf("%d..", a); foo(); printf("%d", a);}void foo(){ #undef a #define a 50}%!
What will be the output of the program code?#include#define a 10void main(){ #define a 50 printf("%d", a);}
What will be the output of the following program?#include#define square(x) x*x void main(){ int i; i = 64/square(4); printf("%d", i); }
What will be the output of the program?#include#define int char void main(){ int i = 65; printf("sizeof(i)=%d", sizeof(i));}
A preprocessor command
C preprocessor
What will be output if you will compile and execute the following c code?#include#define max 5void main(){ int i = 0; i = max++; printf("%d", i++);}
In which stage the following code#includegets replaced by the contents of the file stdio.h
Reply to Comment
×
Name
*
Email
*
Comment
*
Submit Reply
Your experience on this site will be improved by allowing cookies. Read
Cookie Policy
Reject
Allow cookies