Question: 1 . What is output by the program given below? #include #define NUM _ DATA 2 typedef struct Data _ struct { int ID; char
What is output by the program given below?
#include #define NUMDATA
typedef struct Datastruct int ID;
char type;
Data;
int mainvoid
Data idDataNUMDATA; int i;
idDataID ; strcpyidDatatype, "Public"; idDataID ; strcpyidDatatype, "Private"; printfTotal data: d NUMDATA;
for i ; i NUMDATA; i
printf ID: d idDataiID; printf type s idDataitype;
return ;
a Total data: ID: type: Private ID: type: Public
b Total data: ID: type: Private ID: type: Public
c Total data: ID: type: Public ID: type: Private
d Total data: ID: type: Public ID: type: Private
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
