Question: I re - uploaded it because I wanted to hear your detailed answer. Especially, please explain in detail about number 3 . #include #include #define
I reuploaded it because I wanted to hear your detailed answer. Especially, please explain in detail about number
#include
#include
#define N Line
int main
unsigned char i;
char d;
unsigned char sum ;
d charmallocN sizeofchar;
for i ; i N; id i i;
for i ; i N; i sum di;
freed;
printfsum is d
sum;
what is the value printed by the printfstatement
If #define N is used instead of Linewould sum have the intended result? If not, how would you fix that problem?
If #define N is used instead of Linewhat problem would additionally emerge? How would you fix those problems?
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
