L
L
leventov2011-02-15 22:06:40
Programming languages
leventov, 2011-02-15 22:06:40

Define language?

f(a,b,c) {
    a = b + c;
    a = a - c;
    return a;
}

*ashamed* What programming language is this?
UPD. From here: habrahabr.ru/company/yandex/blog/113855/

Answer the question

In order to leave comments, you need to log in

7 answer(s)
R
Robotex, 2011-02-20
@leventov

Well, for example, C. There, if the type is not specified during the declaration, then it is considered that int.

T
tangro, 2011-02-15
@tangro

it might just be pseudocode.

E
Evgeny Elizarov, 2011-02-15
@KorP

put a plus sign

A
art_vybor, 2011-02-20
@art_vybor

It can still be B
Here you can see the documentation for B
7.3 Function Definitions
Function definitions have the following form:
name ( arguments ) statement
The name is initialized to the rvalue of the function. The arguments consist of a list of names separated by commas. Each name defines an automatic lvalue that is assigned the rvalue of the corresponding function call actual parameters. The statement (often compound) defines the execution of the function when invoked.

E
Erik Khalimov, 2011-02-16
@biomaks

Help the person, he really wants to get into the courses =)

A
Atrax, 2011-02-16
@Atrax

C

P
Paulskit, 2011-02-16
@Paulskit

Why pass the variable "a" if another value is immediately assigned to it?
PS +1 to pseudocode

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question