Tuesday, September 03, 2019

C vs PL/I

Random thoughts
Topic C PL/I
Procedures short foo() {
}
name: proc(variables) returns(datatype);
end name;
Datatypes int
short
long
float

bit(length)
bin fixed(15)
bin fixed(31)
char(length)
dec fixed(length, precision)

Variable declaration int myvar;
int myvar = 3;
dcl myvar bin fixed(15);
dcl myvar bin fixed(15) init(3);
Comments //
/* */
//
/* */
Operators C PL/I
Control structures C if x = 1 then do;
end;
else do;
end;
for i = 1 to 10;
end;
_final C PL/I

Your thoughts?

No comments: