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-212 Programming Concepts
17. Use pointers to pointers and display numbers
#include <stdio.h>
#include <stdio.h>
#include <conio.h>
void main()
{
int k;
int a[]={1,2,3};
int *b[3];
int **c[3];
int ***d[3];
int ****e[3];
int *****f[3];
clrscr();
for(k=0;k<3;k++)
{
b[k]=a+k;
c[k]=b+k;
d[k]=c+k;
e[k]=d+k;
f[k]=e+k;
}
for(k=0;k<3;k++)
{
printf("%3d",*b[k]);
printf("%3d",**c[k]);
printf("%3d",***d[k]);
printf("%3d",****e[k]);
printf("%3d\n",*****f[k]);
}
}
OUTPUT:
1 1 1 1 1
2 2 2 2 2
3 3 3 3 3
M09_ITL-ESL4791_02_SE_C09.indd 212 12/22/2012 5:04:03 PM
Pointers II-213
Find the bug/s in ...
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