FIND THE ERRORS? c) #include ; <= this semicolon is taken out #define Size = 2;<= semicolon out int a(Size)(Si
Posted: Sun May 15, 2022 11:57 pm
FIND THE ERRORS?
c) #include <stdio.h>; <= this semicolon is taken
out
#define Size = 2;<= semicolon out
int a(Size)(Size) = {{1, 2}, {3, 4};
a(1, 1) = 5;
d) int *zPtr; *sPtr /* zPtr will reference array z;
int z(5) = {1, 2, 3, 4, 5};
zPtr = z;
++z;
zPtr++;
sPtr = zPtr/2;
*(zPtr+2) = 20;
C PROGRAMMING
c) #include <stdio.h>; <= this semicolon is taken
out
#define Size = 2;<= semicolon out
int a(Size)(Size) = {{1, 2}, {3, 4};
a(1, 1) = 5;
d) int *zPtr; *sPtr /* zPtr will reference array z;
int z(5) = {1, 2, 3, 4, 5};
zPtr = z;
++z;
zPtr++;
sPtr = zPtr/2;
*(zPtr+2) = 20;
C PROGRAMMING