Question: #include #include #define N 1 0 / / Line 1 int main ( ) { unsigned char i; char * d; unsigned char sum =
#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 printf statement?
If #define N is used instead of Line would sum have the intended result? If not, how would you fix that problem?
If #define N is used instead of Line what problem would additionally emerge? How would you fix those problems?
what is the value printed by the printf statement?
If #define N is used instead of Line would sum have the intended result? If not, how would you fix that problem?
If #define N is used instead of Line what 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
