(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
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
English,
5 months ago
Social Sciences,
5 months ago
Science,
5 months ago
Math,
9 months ago
Physics,
9 months ago
India Languages,
1 year ago