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
Structure and Union II-289
Program on Structure within Structure
9. Program to display information of an officer and his date of joining
#include <stdio.h>
#include <conio.h>
void main()
{
struct name
{
char first[7];
char second[7];
};
struct j_date
{
int day;
int month;
int year;
};
struct data
{
struct name nm;
struct j_date bt;
};
struct data r1={"Thomas","Rajesh",10,01,2005};
clrscr();
printf("Name : %s %s \n",r1.nm.first,r1.nm.second);
printf("Joining Date : %d.%d.%d",r1.bt.day,r1.bt.month,r1.
bt.year);
getche();
}
OUTPUT:
Name : Thomas Rajesh
Joining Date : 10.1.2005
M13_ITL-ESL4791_02_SE_C13.indd 289 12/22/2012 5:06:16 PM
II-290 Programming Concepts
Programs ...
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