Computer Science, asked by navkaur3108, 9 months ago

(c) Rewrite the following program after removing the syntactical errors (if any).Underline each correct
ion
[2]
Typdef int Num;
Num full=100;
Num Calc(int X)
full=(x>2)?1:2;
return (ful1:2)
void main
int full=1000;
full=Calc(: : full);
cout<<:: full<<": :">>full>>endl;
2​

Answers

Answered by priyanshupathak270
1

Answer:

typedef int num;

num full = 100;

full=(x>2):1!2;

return(full1:2!);

void main

int full =1000;

full = calc(::full);

cout<<::full<<::>>full>>end;

Similar questions