Parameters and result of a function

Nasza ocena:

3
Wyświetleń: 637
Komentarze: 0
Notatek.pl

Pobierz ten dokument za darmo

Podgląd dokumentu
Parameters and result of a function - strona 1

Fragment notatki:

Parameters and result of a function • The first line of power itse lf, int power(int base, int n) declares: the type returned by the function (int) and types and names of parameters • Parameters are like local variables with initially assigned values • Other names: formal argument (in the declaration of the function), actual argument (in the call) • To return the value, use the return statement • A function does not need to return a value • The calling function may ignore the value returned by a function ... zobacz całą notatkę



Komentarze użytkowników (0)

Zaloguj się, aby dodać komentarz