Pointers (set 2)
MCQ Problems on pointers in C
1. |
What would be output of the following code on Linux machine:
(On Linux Machines, size of pointers are 4 bytes) |
A. |
i=16 j=102 k=102 |
B. |
i=16 j=104 k=104 |
C. |
i=16 j=100 k=100 |
D. |
None of the options |
2. |
What would be output of the following program:
|
A. |
HackersFriend |
B. |
hackersfriend |
C. |
hHackersFriend |
D. |
HhackersFriend |
3. |
What would be the output of following on Linux Machine:
(On Linux Machines, size of pointers are 4 bytes) |
A. |
4 4 4 |
B. |
8 8 8 |
C. |
Garbage values |
D. |
None of the options |
Join the community of 1 Lakh+ Developers
Create a free account and get access to tutorials, jobs, hackathons, developer events and neatly written articles.
Create a free account