Skip to Main Content
Xpress Learning - Computer Fundamentals of Programming an IT by Pearson
book

Xpress Learning - Computer Fundamentals of Programming an IT by Pearson

by Ashok N. Kamthane, Rohit Khurana
May 2024
Beginner to intermediate content levelBeginner to intermediate
465 pages
16h 14m
English
Pearson India
Content preview from Xpress Learning - Computer Fundamentals of Programming an IT by Pearson
II-262 Programming Concepts
#define plus(x) P
void main()
{
int x=2,y;
clrscr();
y=plus(x)
printf("\nx = %d y = %d",x,y);
}
(a) x = 3 y = 2
(b) x = 3 y = 3
(c) x = 2 y = 2
(d) None of the above
26. In the following example, whether macro is treated as .
#include <stdio.h>
#include <conio.h>
#define S "This Book Teaches C"
void main()
{
printf("\n %s",S);
}
(a) Macro as well as array (b) Only macro
(c) Only array (d) None of the above
27. What will be the output after execution of the following program?
#include <stdio.h>
#include <conio.h>
#define S "This Book Teaches C"
void main()
{
clrscr();
printf("\n %c",*(S+3));
}
(a) s (b) h
(c) i (d) T
28.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Express Learning - Computer Fundamentals and Programming

Express Learning - Computer Fundamentals and Programming

Ashok Kamthane, ITL ESL
Windows® Internals, Sixth Edition, Part 2

Windows® Internals, Sixth Edition, Part 2

David A. Solomon Mark E. Russinovich and Alex Ionescu

Publisher Resources

ISBN: 9781299954878